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


##########
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:
   The old code started the Thrift server, but this new code does not. It 
passes `false` for the 2nd parameter to `startThriftServer`. In the Manager, 
the Thrift server is started later, on line 1379



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