ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject ignite git commit: ignite-1758 debug
Date Thu, 05 Nov 2015 10:45:00 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-1758 bf34693be -> c3962c443


ignite-1758 debug


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

Branch: refs/heads/ignite-1758
Commit: c3962c44301c80fde6d7829b68dd370a45782932
Parents: bf34693
Author: sboikov <sboikov@gridgain.com>
Authored: Thu Nov 5 13:44:49 2015 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Thu Nov 5 13:44:49 2015 +0300

----------------------------------------------------------------------
 .../org/apache/ignite/spi/discovery/tcp/TcpDiscoveryImpl.java   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/c3962c44/modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoveryImpl.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoveryImpl.java
b/modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoveryImpl.java
index 07e15dd..aee3039 100644
--- a/modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoveryImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoveryImpl.java
@@ -117,7 +117,7 @@ abstract class TcpDiscoveryImpl {
 
         String msg0 = new SimpleDateFormat("[HH:mm:ss,SSS]").format(new Date(System.currentTimeMillis()))
+
             '[' + Thread.currentThread().getName() + "][" + getLocalNodeId() +
-            "-" + locNode.internalOrder() + "] " +
+            "-" + (locNode != null ? locNode.internalOrder() : null) + "] " +
             msg;
 
         debugLog.add(msg0);
@@ -132,6 +132,9 @@ abstract class TcpDiscoveryImpl {
      * @return Local node ID.
      */
     public UUID getLocalNodeId() {
+        if (spi.locNode == null)
+            return null;
+
         return spi.locNode.id();
     }
 


Mime
View raw message