You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "DomGarguilo (via GitHub)" <gi...@apache.org> on 2026/02/25 18:21:28 UTC
[PR] Migrate External Compactions Monitor Page to rest-v2 [accumulo]
DomGarguilo opened a new pull request, #6155:
URL: https://github.com/apache/accumulo/pull/6155
This PR migrates the External Compactions monitor page from `rest` endpoints to the newer `rest-v2`.
* front-end code now uses new `rest-v2` endpoints to pull the data to populate the external compaction page
* added "new" EC response objects under `/next/`. These were mostly just moved and light refactor (used `record` where makes sense) of existing objects (which are now unused + removed as of this PR).
* updated `Monitor.java` to replace `ExternalCompactionInfo` with an internal snapshot class
This task was brought up in #6145 as a worthy follow-on
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Migrate External Compactions Monitor Page to rest-v2 [accumulo]
Posted by "ddanielr (via GitHub)" <gi...@apache.org>.
ddanielr commented on code in PR #6155:
URL: https://github.com/apache/accumulo/pull/6155#discussion_r2855664349
##########
server/monitor/src/main/java/org/apache/accumulo/monitor/Monitor.java:
##########
@@ -670,25 +679,26 @@ private Map<HostAndPort,CompactionStats> fetchCompactions() {
return Collections.unmodifiableMap(allCompactions);
}
- private ExternalCompactionInfo fetchCompactorsInfo() {
+ private ExternalCompactorSnapshot fetchCompactorsInfo() {
Set<ServerId> compactors =
getContext().instanceOperations().getServers(ServerId.Type.COMPACTOR);
log.debug("Found compactors: {}", compactors);
- ExternalCompactionInfo ecInfo = new ExternalCompactionInfo();
- ecInfo.setFetchedTimeMillis(System.currentTimeMillis());
- ecInfo.setCompactors(compactors);
- ecInfo.setCoordinatorHost(coordinatorHost);
- return ecInfo;
+ return new ExternalCompactorSnapshot(coordinatorHost, compactors, System.currentTimeMillis());
Review Comment:
A couple of these methods attempt to validate that `coordinatorHost` is not an empty optional.
This might be outside the scope of this change, but should a snapshot be created if the coordinator doesn't exist?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Migrate External Compactions Monitor Page to rest-v2 [accumulo]
Posted by "DomGarguilo (via GitHub)" <gi...@apache.org>.
DomGarguilo commented on PR #6155:
URL: https://github.com/apache/accumulo/pull/6155#issuecomment-3961466582
No UI changes made here but a screenshot anyway to help verify things are working
<img width="2624" height="1422" alt="image" src="https://github.com/user-attachments/assets/586cae46-41aa-4fa2-b13b-a1ae0ced2a3c" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org