EnricoMi commented on code in PR #1434:
URL:
https://github.com/apache/incubator-uniffle/pull/1434#discussion_r1448334178
##########
server/src/main/java/org/apache/uniffle/server/ShuffleServer.java:
##########
@@ -356,7 +354,12 @@ private void waitDecommissionFinish() {
while (isDecommissioning()) {
remainApplicationNum = shuffleTaskManager.getAppIds().size();
if (remainApplicationNum == 0) {
- serverStatus.set(ServerStatus.DECOMMISSIONED);
+ boolean wasDecommissioning =
+ serverStatus.compareAndSet(ServerStatus.DECOMMISSIONING,
ServerStatus.DECOMMISSIONED);
+ if (!wasDecommissioning) {
+ break;
Review Comment:
We are leaving the lop here and there will be a log when exiting this method:
LOG.info("Decommission exiting, remaining {} applications not
finished.", remainApplicationNum);
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]