Repository: ignite
Updated Branches:
  refs/heads/master 64d920bf5 -> 8c3731e83


IGNITE-6113 Return back old implementation instead of 'removeIf' - Fixes #3609.

Signed-off-by: Alexey Goncharuk <alexey.goncha...@gmail.com>


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

Branch: refs/heads/master
Commit: 8c3731e83296e1750c7c098b283c3fd8584b1be4
Parents: 64d920b
Author: Pavel Kovalenko <jokse...@gmail.com>
Authored: Tue Mar 6 21:22:40 2018 +0300
Committer: Alexey Goncharuk <alexey.goncha...@gmail.com>
Committed: Tue Mar 6 21:22:40 2018 +0300

----------------------------------------------------------------------
 .../cache/distributed/dht/GridDhtLocalPartition.java          | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/8c3731e8/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtLocalPartition.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtLocalPartition.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtLocalPartition.java
index 119ea91..7a47f31 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtLocalPartition.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtLocalPartition.java
@@ -1194,7 +1194,12 @@ public class GridDhtLocalPartition extends 
GridCacheConcurrentMapImpl implements
     void onCacheStopped(int cacheId) {
         assert grp.sharedGroup() : grp.cacheOrGroupName();
 
-        rmvQueue.removeIf(e -> e.cacheId() == cacheId);
+        for (Iterator<RemovedEntryHolder> it = rmvQueue.iterator(); 
it.hasNext();) {
+            RemovedEntryHolder e = it.next();
+
+            if (e.cacheId() == cacheId)
+                it.remove();
+        }
 
         cacheMaps.remove(cacheId);
     }

Reply via email to