xyuanlu commented on code in PR #3043: URL: https://github.com/apache/helix/pull/3043#discussion_r2129494192
########## helix-core/src/main/java/org/apache/helix/controller/stages/MessageGenerationPhase.java: ########## @@ -250,17 +260,30 @@ private void generateMessage(final Resource resource, final BaseControllerDataPr pendingMessage, manager, resource, partition, sessionIdMap, instanceName, stateModelDef, cancellationMessage, isCancellationEnabled); } else { + // Default currentReplicaNumber is -1 (provides metadata for participant-side prioritization) + int currentReplicaNumber = -1; Review Comment: I think providing the currentReplicaNumber for both upward state transition and downward state transition both help participant side. Why we want to set -1 for downward state transition messages? -- 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: reviews-unsubscr...@helix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@helix.apache.org For additional commands, e-mail: reviews-h...@helix.apache.org