You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by am...@apache.org on 2019/03/25 11:34:30 UTC

[ignite] branch master updated: IGNITE-11590: NPE during onKernalStop in mvcc processor. This closes #6317.

This is an automated email from the ASF dual-hosted git repository.

amashenkov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new 87bd39f  IGNITE-11590: NPE during onKernalStop in mvcc processor. This closes #6317.
87bd39f is described below

commit 87bd39fe0995719dbf4be51c09c6fad3f4abef6a
Author: Anton Kalashnikov <ka...@yandex.ru>
AuthorDate: Mon Mar 25 14:21:51 2019 +0300

    IGNITE-11590: NPE during onKernalStop in mvcc processor. This closes #6317.
    
    Signed-off-by: Andrey V. Mashenkov <an...@gmail.com>
---
 .../ignite/internal/processors/cache/mvcc/MvccProcessorImpl.java     | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/mvcc/MvccProcessorImpl.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/mvcc/MvccProcessorImpl.java
index e7b4289..760abca 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/mvcc/MvccProcessorImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/mvcc/MvccProcessorImpl.java
@@ -456,7 +456,10 @@ public class MvccProcessorImpl extends GridProcessorAdapter implements MvccProce
         }
         finally {
             // Cleanup pending futures.
-            onCoordinatorFailed(curCrd.nodeId());
+            MvccCoordinator curCrd0 = curCrd;
+
+            if (curCrd0.nodeId() != null) //Skip if coordinator is unassigned or disconnected.
+                onCoordinatorFailed(curCrd0.nodeId());
         }
     }