dlmarion commented on code in PR #5662:
URL: https://github.com/apache/accumulo/pull/5662#discussion_r2181002902


##########
server/manager/src/main/java/org/apache/accumulo/manager/Manager.java:
##########
@@ -1123,14 +1121,14 @@ public void run() {
     managerClientHandler = new ManagerClientServiceHandler(this);
     compactionCoordinator = new CompactionCoordinator(this, fateRefs);
 
-    ServerAddress sa;
     var processor = ThriftProcessorTypes.getManagerTProcessor(this, 
fateServiceHandler,
         compactionCoordinator.getThriftService(), managerClientHandler, 
getContext());
-
     try {
-      sa = TServerUtils.createThriftServer(context, getBindAddress(), 
Property.MANAGER_CLIENTPORT,
-          processor, "Manager", null, Property.MANAGER_MINTHREADS,
-          Property.MANAGER_MINTHREADS_TIMEOUT, Property.MANAGER_THREADCHECK);
+      startThriftServer(() -> {
+        return TServerUtils.createThriftServer(context, getBindAddress(),
+            Property.MANAGER_CLIENTPORT, processor, "Manager", null, 
Property.MANAGER_MINTHREADS,
+            Property.MANAGER_MINTHREADS_TIMEOUT, Property.MANAGER_THREADCHECK);
+      }, false);

Review Comment:
   That's correct. In most other places the Thrift server is started when 
`startThriftServer` is called, except for the Manager. It passes `false` as the 
2nd parameter, then starts it later. Maybe renaming the method would help?



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