dlmarion commented on code in PR #6371:
URL: https://github.com/apache/accumulo/pull/6371#discussion_r3268584434
##########
server/monitor/src/main/java/org/apache/accumulo/monitor/next/InformationFetcher.java:
##########
@@ -412,6 +424,67 @@ public void run() {
}
}
+ class FateTransactionFetcher implements UpdateTask<Void> {
+
+ private final SystemInformation summary;
+ private Map<FateId,List<String>> emptyLocks = new HashMap<>();
+ private Map<FateId,LockRange> emptyRanges = new HashMap<>();
+
+ public FateTransactionFetcher(SystemInformation summary) {
+ this.summary = summary;
+ }
+
+ @Override
+ public void run() {
+ FateStatus status = AdminUtil.getTransactionStatus(stores, null, null,
null, emptyLocks,
+ emptyLocks, emptyRanges);
+ summary.processFateTransactions(status.getTransactions());
Review Comment:
I passed empty collections here because passing null would have caused a
NPE. Looking at the code again, I think I need to make another change.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]