geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject incubator-geode git commit: GEODE-649: add more logging to see the reason of future failure.
Date Tue, 22 Dec 2015 18:48:34 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/develop 1a025728a -> 94bce4d39


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/develop
Commit: 94bce4d394b24cceb2f183db0b35aa7688679fb5
Parents: 1a02572
Author: Jinmei Liao <jiliao@pivotal.io>
Authored: Tue Dec 22 08:38:29 2015 -0800
Committer: Kirk Lund <klund@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;
         }
       }


Mime
View raw message