You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2020/02/17 14:46:34 UTC

[GitHub] [ignite] vldpyatkov commented on a change in pull request #7428: IGNITE-11147 Re-balance cancellation occur by non-affected event

vldpyatkov commented on a change in pull request #7428: IGNITE-11147 Re-balance cancellation occur by non-affected event
URL: https://github.com/apache/ignite/pull/7428#discussion_r380222193
 
 

 ##########
 File path: modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/topology/GridDhtPartitionTopologyImpl.java
 ##########
 @@ -2708,23 +2690,30 @@ private void removeNode(UUID nodeId) {
     @Override public void ownMoving(AffinityTopologyVersion rebFinishedTopVer) {
         lock.writeLock().lock();
 
-        AffinityTopologyVersion lastAffChangeVer = ctx.exchange().lastAffinityChangedTopologyVersion(lastTopChangeVer);
+        try {
+            AffinityTopologyVersion lastAffChangeVer = ctx.exchange().lastAffinityChangedTopologyVersion(lastTopChangeVer);
 
-        if (lastAffChangeVer.compareTo(rebFinishedTopVer) > 0)
-            log.info("Affinity topology changed, no MOVING partitions will be owned " +
-                "[rebFinishedTopVer=" + rebFinishedTopVer +
-                ", lastAffChangeVer=" + lastAffChangeVer + "]");
+            if (lastAffChangeVer.compareTo(rebFinishedTopVer) > 0) {
+                if (log.isInfoEnabled()) {
+                    log.info("Affinity topology changed, no MOVING partitions will be owned " +
+                        "[rebFinishedTopVer=" + rebFinishedTopVer +
+                        ", lastAffChangeVer=" + lastAffChangeVer + "]");
+                }
 
-        try {
-            for (GridDhtLocalPartition locPart : grp.topology().currentLocalPartitions()) {
+                grp.preloader().forceRebalance();
 
 Review comment:
   I suggest that will be a temporary solution.
   Until we haven't implement the issue
   https://ggsystems.atlassian.net/browse/GG-27642

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services