zhoujinsong commented on code in PR #3567:
URL: https://github.com/apache/amoro/pull/3567#discussion_r2131667865


##########
amoro-ams/src/main/java/org/apache/amoro/server/AmoroServiceContainer.java:
##########
@@ -126,11 +126,14 @@ public static void main(String[] args) {
                     service.dispose();
                     LOG.info("AMS service has been shut down");
                   }));
+      service.startRestServices();
       while (true) {
         try {
           service.waitLeaderShip();
-          service.startService();
+          service.startOptimizingService();
           service.waitFollowerShip();
+          // become follower, dispose optimizingService stop
+          service.stopOptimizingService();

Review Comment:
   Yes, the dispose process will close the rest service. It should be fixed.
   
   I open a PR to fix it: https://github.com/czy006/amoro/pull/2
   @czy006 You can checkout it.



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