ignite-7340 Fix flaky GridServiceProcessorMultiNodeConfigSelfTest#checkDeployOnEachNodeUpdateTopology
@@ -1289,6 +1289,14 @@ public class GridServiceProcessor extends GridProcessorAdapter implements Ignite
* @param assigns Assignments.
*/
private void redeploy(GridServiceAssignments assigns) {
+ if (assigns.topologyVersion() < ctx.discovery().topologyVersion()) {
+ if (log.isDebugEnabled())
+ log.debug("Skip outdated assignment [assigns=" + assigns +
+ ", topVer=" + ctx.discovery().topologyVersion() + ']');
+
+ return;
+ }
+
String svcName = assigns.name();
Integer assignCnt = assigns.assigns().get(ctx.localNodeId());
