You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ag...@apache.org on 2017/04/06 07:57:44 UTC
ignite git commit: IGNITE-3477 - DEBUG - Trace H2 server
Repository: ignite
Updated Branches:
refs/heads/ignite-3477-debug a2b5c011d -> 3409bc295
IGNITE-3477 - DEBUG - Trace H2 server
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/3409bc29
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/3409bc29
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/3409bc29
Branch: refs/heads/ignite-3477-debug
Commit: 3409bc295da5dc7651f90a1bfc98294dee3b1618
Parents: a2b5c01
Author: Alexey Goncharuk <al...@gmail.com>
Authored: Thu Apr 6 10:57:55 2017 +0300
Committer: Alexey Goncharuk <al...@gmail.com>
Committed: Thu Apr 6 10:57:55 2017 +0300
----------------------------------------------------------------------
.../internal/processors/cache/H2CacheStoreStrategy.java | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/3409bc29/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/H2CacheStoreStrategy.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/H2CacheStoreStrategy.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/H2CacheStoreStrategy.java
index ccb2994..b16725e 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/H2CacheStoreStrategy.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/H2CacheStoreStrategy.java
@@ -75,8 +75,13 @@ public class H2CacheStoreStrategy implements TestCacheStoreStrategy {
* @throws IgniteCheckedException If failed.
*/
public H2CacheStoreStrategy() throws IgniteCheckedException {
+ Server srv = null;
+
try {
- Server.createTcpServer().start();
+ srv = Server.createTcpServer("-trace").start();
+
+ U.debug("Created H2 server: " + srv.getStatus());
+
dataSrc = H2CacheStoreSessionListenerFactory.createDataSource();
try (Connection conn = connection()) {
@@ -86,6 +91,10 @@ public class H2CacheStoreStrategy implements TestCacheStoreStrategy {
}
}
catch (SQLException e) {
+ if (srv != null) {
+ U.debug("Exception caught, server: " + srv.getStatus());
+ }
+
throw new IgniteCheckedException(e);
}
}