ignite-2.0 - Do not call primaryByKey() in cache entry synchronized block - Fixes
@@ -146,6 +146,8 @@ public class GridNearCacheEntry extends GridDistributedCacheEntry {
GridCacheVersion enqueueVer = null;
try {
+ ClusterNode primaryNode = cctx.affinity().primaryByKey(key, topVer);
+
synchronized (this) {
checkObsolete();
@@ -164,8 +166,6 @@ public class GridNearCacheEntry extends GridDistributedCacheEntry {
}
}
- ClusterNode primaryNode = cctx.affinity().primaryByKey(key, topVer);
-
if (primaryNode == null)
this.topVer = AffinityTopologyVersion.NONE;
else
