ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sevdoki...@apache.org
Subject incubator-ignite git commit: # GG-9931 NPE in GridTaskProcessor.
Date Wed, 18 Mar 2015 11:44:57 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-45 e4834f478 -> be0ddab33


# GG-9931 NPE in GridTaskProcessor.


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

Branch: refs/heads/ignite-45
Commit: be0ddab33e2d0eb87f5c6920efbdb672f7db19b9
Parents: e4834f4
Author: sevdokimov <sevdokimov@gridgain.com>
Authored: Wed Mar 18 14:44:14 2015 +0300
Committer: sevdokimov <sevdokimov@gridgain.com>
Committed: Wed Mar 18 14:44:14 2015 +0300

----------------------------------------------------------------------
 .../ignite/internal/processors/task/GridTaskProcessor.java    | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/be0ddab3/modules/core/src/main/java/org/apache/ignite/internal/processors/task/GridTaskProcessor.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/task/GridTaskProcessor.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/task/GridTaskProcessor.java
index a686d37..02743df 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/task/GridTaskProcessor.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/task/GridTaskProcessor.java
@@ -94,8 +94,6 @@ public class GridTaskProcessor extends GridProcessorAdapter {
         marsh = ctx.config().getMarshaller();
 
         discoLsnr = new TaskDiscoveryListener();
-
-        tasksMetaCache = ctx.security().enabled() ? ctx.cache().<GridTaskNameHashKey,
String>utilityCache() : null;
     }
 
     /** {@inheritDoc} */
@@ -111,6 +109,11 @@ public class GridTaskProcessor extends GridProcessorAdapter {
     }
 
     /** {@inheritDoc} */
+    @Override public void onKernalStart() throws IgniteCheckedException {
+        tasksMetaCache = ctx.security().enabled() ? ctx.cache().<GridTaskNameHashKey,
String>utilityCache() : null;
+    }
+
+    /** {@inheritDoc} */
     @SuppressWarnings("TooBroadScope")
     @Override public void onKernalStop(boolean cancel) {
         lock.writeLock();


Mime
View raw message