ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [06/18] ignite git commit: Avoid potential blocking of the thread completing affinityReadyFuture.
Date Mon, 31 Aug 2015 14:10:59 GMT
Avoid potential blocking of the thread completing affinityReadyFuture.


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

Branch: refs/heads/ignite-843
Commit: 8a742a2be00b8f701372b87e1782a7348d0ed899
Parents: e6de574
Author: sboikov <sboikov@gridgain.com>
Authored: Mon Aug 31 12:10:12 2015 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Mon Aug 31 12:10:12 2015 +0300

----------------------------------------------------------------------
 .../ignite/internal/processors/cache/GridCacheIoManager.java   | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/8a742a2b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheIoManager.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheIoManager.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheIoManager.java
index 26253ed..cfdf06c 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheIoManager.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheIoManager.java
@@ -118,7 +118,11 @@ public class GridCacheIoManager extends GridCacheSharedManagerAdapter
{
             if (fut != null && !fut.isDone()) {
                 fut.listen(new CI1<IgniteInternalFuture<?>>() {
                     @Override public void apply(IgniteInternalFuture<?> t) {
-                        handleMessage(nodeId, cacheMsg);
+                        cctx.kernalContext().closure().runLocalSafe(new Runnable() {
+                            @Override public void run() {
+                                handleMessage(nodeId, cacheMsg);
+                            }
+                        });
                     }
                 });
 


Mime
View raw message