keith-turner commented on code in PR #6168:
URL: https://github.com/apache/accumulo/pull/6168#discussion_r2885559865


##########
server/manager/src/main/java/org/apache/accumulo/manager/Manager.java:
##########
@@ -958,6 +975,26 @@ public void run() {
       throw new IllegalStateException("Unable to start server on host " + 
getBindAddress(), e);
     }
 
+    tserverSet.startListeningForTabletServerChanges(this);
+
+    MetricsInfo metricsInfo = getContext().getMetricsInfo();
+
+    try {
+      // Acquire the lock that all managers get before the primary lock, this 
allows non primary
+      // manager processes to work on stuff.
+      getManagerLock();
+    } catch (KeeperException | InterruptedException e) {
+      throw new IllegalStateException("Unable to get manager lock ", e);
+    }
+
+    fateWorker.setLock(managerLock);
+
+    metricsInfo
+        .addMetricsProducers(fateWorker.getMetricsProducers().toArray(new 
MetricsProducer[0]));
+
+    metricsInfo.init(MetricsInfo.serviceTags(getContext().getInstanceName(), 
getApplicationName(),

Review Comment:
   In addition to that, we probably need some command line tools to show 
information about manager processes.  Maybe that could be an update to the 
service status command.  Would be nice to see which manager is primary and for 
the non primary ones what has been delegated to them.  Could also show this 
information on the monitor.



-- 
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]

Reply via email to