You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by je...@apache.org on 2015/12/30 01:28:21 UTC
[21/33] incubator-geode git commit: GEODE-649: add more logging to
see the reason of future failure.
GEODE-649: add more logging to see the reason of future failure.
Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/94bce4d3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/94bce4d3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/94bce4d3
Branch: refs/heads/feature/GEODE-14
Commit: 94bce4d394b24cceb2f183db0b35aa7688679fb5
Parents: 1a02572
Author: Jinmei Liao <ji...@pivotal.io>
Authored: Tue Dec 22 08:38:29 2015 -0800
Committer: Kirk Lund <kl...@pivotal.io>
Committed: Tue Dec 22 10:47:49 2015 -0800
----------------------------------------------------------------------
.../gemfire/distributed/AbstractLauncherJUnitTestCase.java | 2 +-
.../gemfire/distributed/ServerLauncherRemoteJUnitTest.java | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/94bce4d3/gemfire-core/src/test/java/com/gemstone/gemfire/distributed/AbstractLauncherJUnitTestCase.java
----------------------------------------------------------------------
diff --git a/gemfire-core/src/test/java/com/gemstone/gemfire/distributed/AbstractLauncherJUnitTestCase.java b/gemfire-core/src/test/java/com/gemstone/gemfire/distributed/AbstractLauncherJUnitTestCase.java
index 5e79bef..38accda 100755
--- a/gemfire-core/src/test/java/com/gemstone/gemfire/distributed/AbstractLauncherJUnitTestCase.java
+++ b/gemfire-core/src/test/java/com/gemstone/gemfire/distributed/AbstractLauncherJUnitTestCase.java
@@ -52,7 +52,7 @@ import com.gemstone.gemfire.internal.util.StopWatch;
* @since 8.0
*/
public abstract class AbstractLauncherJUnitTestCase {
- private static final Logger logger = LogService.getLogger();
+ protected static final Logger logger = LogService.getLogger();
protected static final int WAIT_FOR_PROCESS_TO_DIE_TIMEOUT = 5 * 60 * 1000; // 5 minutes
protected static final int TIMEOUT_MILLISECONDS = WAIT_FOR_PROCESS_TO_DIE_TIMEOUT;
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/94bce4d3/gemfire-core/src/test/java/com/gemstone/gemfire/distributed/ServerLauncherRemoteJUnitTest.java
----------------------------------------------------------------------
diff --git a/gemfire-core/src/test/java/com/gemstone/gemfire/distributed/ServerLauncherRemoteJUnitTest.java b/gemfire-core/src/test/java/com/gemstone/gemfire/distributed/ServerLauncherRemoteJUnitTest.java
index 5833bd4..cbcfb77 100755
--- a/gemfire-core/src/test/java/com/gemstone/gemfire/distributed/ServerLauncherRemoteJUnitTest.java
+++ b/gemfire-core/src/test/java/com/gemstone/gemfire/distributed/ServerLauncherRemoteJUnitTest.java
@@ -1346,9 +1346,11 @@ public class ServerLauncherRemoteJUnitTest extends AbstractServerLauncherJUnitTe
}
final ServerState serverState = launcher.status();
assertNotNull(serverState);
+ logger.info("serverState: "+serverState);
return Status.ONLINE.equals(serverState.getStatus());
}
catch (RuntimeException e) {
+ logger.error(e, e);
return false;
}
}