apache / apache/accumulo

Add public API methods for accessing counts of Major Compaciton, Minor Compactions, and Active/Queued counts

Open
#5,965 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
1.2k
Forks
487
Avg merge
4d 5h
Merged PRs (30d)
13

Description

**Is your feature request related to a problem? Please describe.**
The ability to access counts of Major Compactions, Minor Compactions, and Active/Queued counts is gated behind the use of non-public classes. We need to be able to access this information in Datawave via the public API.

**Describe the solution you'd like**
InstanceOperations currently has a method called "getActiveCompactions()", but lacks methods for the other counts listed above (Maj/Min, Active/Queued)

**Describe alternatives you've considered**
We're currently using ManagerClientService, ClientContext, and ThriftClientTypes to get the number of compactions, but these are not part of the public API.

**Additional context**
[Related Datawave PR](https://github.com/NationalSecurityAgency/datawave/pull/3253/files)

Contributor guide

Open the contributing guide

Research direction

Start with the public InstanceOperations API and its existing getActiveCompactions() method, then review ManagerClientService, ClientContext, and ThriftClientTypes to understand the currently used non-public access path. Add public access for the requested compaction counts and verify that Datawave-style callers no longer need those non-public classes.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.