ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sevdoki...@apache.org
Subject [24/50] [abbrv] incubator-ignite git commit: fixed update checker on slow connection
Date Tue, 28 Jul 2015 11:20:49 GMT
fixed update checker on slow  connection


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

Branch: refs/heads/ignite-1121
Commit: 06b2504570be3c639b41bf62eb828ad3a63d35e2
Parents: c4a4bd4
Author: Yakov Zhdanov <yzhdanov@gridgain.com>
Authored: Thu Jul 23 18:28:21 2015 +0300
Committer: Yakov Zhdanov <yzhdanov@gridgain.com>
Committed: Thu Jul 23 18:28:21 2015 +0300

----------------------------------------------------------------------
 .../src/main/java/org/apache/ignite/internal/IgniteKernal.java  | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/06b25045/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java b/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
index d2f018a..3f340d1 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
@@ -705,6 +705,11 @@ public class IgniteKernal implements IgniteEx, IgniteMXBean, Externalizable
{
                             // Just wait for 10 secs.
                             Thread.sleep(PERIODIC_VER_CHECK_CONN_TIMEOUT);
 
+                            // Just wait another 60 secs in order to get
+                            // version info even on slow connection.
+                            for (int i = 0; i < 60 && verChecker.latestVersion()
== null; i++)
+                                Thread.sleep(1000);
+
                             // Report status if one is available.
                             // No-op if status is NOT available.
                             verChecker.reportStatus(log);


Mime
View raw message