This is an automated email from the ASF dual-hosted git repository.
dpavlov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-teamcity-bot.git
The following commit(s) were added to refs/heads/master by this push:
new be4ac33 Shutdown order changed to avoid closed ignite usage
be4ac33 is described below
commit be4ac33bee2e2c83089c58f6caf0c104036c736e
Author: Dmitriy Pavlov <[email protected]>
AuthorDate: Wed Dec 19 01:54:16 2018 +0300
Shutdown order changed to avoid closed ignite usage
---
.../src/main/java/org/apache/ignite/ci/web/CtxListener.java | 13 +++++++------
.../ignite/ci/web/model/current/TestFailuresSummary.java | 4 +---
2 files changed, 8 insertions(+), 9 deletions(-)
diff --git
a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/web/CtxListener.java
b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/web/CtxListener.java
index 11c454c..026a0e7 100644
---
a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/web/CtxListener.java
+++
b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/web/CtxListener.java
@@ -94,12 +94,6 @@ public class CtxListener implements ServletContextListener {
Injector injector = getInjector(ctx);
- try {
- TcHelperDb.stop(injector.getInstance(Ignite.class));
- } catch (Exception e) {
- e.printStackTrace();
- }
-
getBackgroundUpdater(ctx).stop();
TcHelper helper = (TcHelper)getTcHelper(ctx);
@@ -120,6 +114,13 @@ public class CtxListener implements ServletContextListener
{
} catch (IOException e) {
e.printStackTrace();
}
+
+
+ try {
+ TcHelperDb.stop(injector.getInstance(Ignite.class));
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
}
}
diff --git
a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/web/model/current/TestFailuresSummary.java
b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/web/model/current/TestFailuresSummary.java
index 7eec405..f3bfa23 100644
---
a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/web/model/current/TestFailuresSummary.java
+++
b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/web/model/current/TestFailuresSummary.java
@@ -25,12 +25,10 @@ import org.apache.ignite.internal.util.typedef.internal.U;
import org.jetbrains.annotations.Nullable;
/**
- * Created by dpavlov on 25.10.2017
- *
* Summary of failures from all servers.
*/
@SuppressWarnings("WeakerAccess") public class TestFailuresSummary extends
UpdateInfo implements IBackgroundUpdatable {
-
+ /** Servers (Services) and their chain results. */
public List<ChainAtServerCurrentStatus> servers = new ArrayList<>();
public Integer failedTests;