You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ag...@apache.org on 2017/06/08 13:18:03 UTC

ignite git commit: IGNITE-5068 - Fixed lost partitions handling

Repository: ignite
Updated Branches:
  refs/heads/ignite-5267-merge-ea 930e2e011 -> 52640357b


IGNITE-5068 - Fixed lost partitions handling


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/52640357
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/52640357
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/52640357

Branch: refs/heads/ignite-5267-merge-ea
Commit: 52640357b1c170b6917339dcb5933ec9fcc4e81a
Parents: 930e2e0
Author: Alexey Goncharuk <al...@gmail.com>
Authored: Thu Jun 8 16:17:53 2017 +0300
Committer: Alexey Goncharuk <al...@gmail.com>
Committed: Thu Jun 8 16:17:53 2017 +0300

----------------------------------------------------------------------
 .../distributed/dht/GridDhtPartitionTopologyImpl.java    | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/52640357/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtPartitionTopologyImpl.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtPartitionTopologyImpl.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtPartitionTopologyImpl.java
index 626ae0a..0e78032 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtPartitionTopologyImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtPartitionTopologyImpl.java
@@ -55,6 +55,7 @@ import org.apache.ignite.internal.util.typedef.F;
 import org.apache.ignite.internal.util.typedef.T2;
 import org.apache.ignite.internal.util.typedef.X;
 import org.apache.ignite.internal.util.typedef.internal.CU;
+import org.apache.ignite.internal.util.typedef.internal.LT;
 import org.apache.ignite.internal.util.typedef.internal.U;
 import org.jetbrains.annotations.Nullable;
 
@@ -71,9 +72,6 @@ import static org.apache.ignite.internal.processors.cache.distributed.dht.GridDh
 @GridToStringExclude
 public class GridDhtPartitionTopologyImpl implements GridDhtPartitionTopology {
     private static final GridDhtPartitionState[] MOVING_STATES = new GridDhtPartitionState[] {MOVING};
-    /** If true, then check consistency. */
-    private static final boolean CONSISTENCY_CHECK = false;
-
     /** Flag to control amount of output for full map. */
     private static final boolean FULL_MAP_DEBUG = false;
 
@@ -886,7 +884,8 @@ public class GridDhtPartitionTopologyImpl implements GridDhtPartitionTopology {
             List<ClusterNode> nodes = null;
 
             if (!topVer.equals(diffFromAffinityVer)) {
-                log.error("??? node2part [topVer=" + topVer + ", diffVer=" + diffFromAffinityVer + "]");
+                LT.warn(log, "Requested topology version does not match calculated diff, will require full iteration to" +
+                    "calculate mapping [topVer=" + topVer + ", diffVer=" + diffFromAffinityVer + "]");
 
                 nodes = new ArrayList<>();
 
@@ -1599,9 +1598,9 @@ public class GridDhtPartitionTopologyImpl implements GridDhtPartitionTopology {
                 }
             }
 
-            checkEvictions(updSeq, cctx.affinity().assignments(topVer));
+            checkEvictions(updSeq, grp.affinity().assignments(topVer));
 
-            cctx.needsRecovery(false);
+            grp.needsRecovery(false);
         }
         finally {
             lock.writeLock().unlock();