dlmarion commented on code in PR #6080:
URL: https://github.com/apache/accumulo/pull/6080#discussion_r2737938544
##########
server/manager/src/main/java/org/apache/accumulo/manager/Manager.java:
##########
@@ -540,7 +542,13 @@ ManagerGoalState getManagerGoalState() {
try {
byte[] data =
getContext().getZooSession().asReaderWriter().getData(Constants.ZMANAGER_GOAL_STATE);
- return ManagerGoalState.valueOf(new String(data, UTF_8));
+ ManagerGoalState goal = ManagerGoalState.valueOf(new String(data,
UTF_8));
+ try {
+ managerMetrics.updateManagerGoalState(goal);
Review Comment:
I didn't think that was necessary as `getManagerGoalState` is already called
in the StatusThread and as part of balancing (`canBalance`).
--
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]