kevinrr888 commented on code in PR #5861:
URL: https://github.com/apache/accumulo/pull/5861#discussion_r2325231346


##########
core/src/main/java/org/apache/accumulo/core/fate/Fate.java:
##########
@@ -182,8 +183,10 @@ public void run() {
         while (fateExecutorsIter.hasNext()) {
           var fateExecutor = fateExecutorsIter.next();
 
-          // if this fate executors set of fate ops is no longer present in 
the config...
-          if (!poolConfigs.containsKey(fateExecutor.getFateOps())) {
+          // if this fate executors set of fate ops is no longer present in 
the config OR
+          // this fate executor was renamed in the config
+          if (!poolConfigs.containsKey(fateExecutor.getFateOps()) || 
!poolConfigs
+              
.get(fateExecutor.getFateOps()).getKey().equals(fateExecutor.getName())) {

Review Comment:
   Yeah that scenario is tested in `FatePoolsWatcherITBase.testDecrease()`
   ```
       // SET1: {<half the FATE ops>: 4} <-- FateExecutor1
       // SET3: {<other half minus one>: 5} <-- FateExecutor2
       // SET4: {<remaining FATE op>: 6} <-- FateExecutor3
       // ---->
       // SET1: {<half the FATE ops>: 3} <-- FateExecutor1
       // SET2: {<other half>: 2} <-- FateExecutor4
   ```



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