zhangmeng916 commented on a change in pull request #1124:
URL: https://github.com/apache/helix/pull/1124#discussion_r454641766



##########
File path: 
helix-core/src/main/java/org/apache/helix/controller/stages/MessageGenerationPhase.java
##########
@@ -371,6 +401,14 @@ private boolean shouldCleanUpPendingMessage(Message 
pendingMsg, String currentSt
     }
   }
 
+  private boolean shouldCleanUpStaleMessage(Message staleMsg, Long 
currentStateTransitionEndTime) {
+    if (staleMsg == null) {

Review comment:
       Normally it shouldn't. But I'm not 100% sure. I saw pendingMessage has 
similar check. Want to keep it for safe.




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

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to