czy006 commented on code in PR #3567:
URL: https://github.com/apache/amoro/pull/3567#discussion_r2113376546
##########
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:
dispose will be close all service (include rest) .if this node become
follower,we just close optimizingService,and will be run waitting become Leader
`service.waitLeaderShip()`
--
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]