From: Basheeruddin Ahmed Date: Wed, 20 Aug 2014 01:10:50 +0000 (-0700) Subject: SupervisorStrategy caught throwable - logging X-Git-Tag: release/helium~250^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F82%2F10082%2F2;hp=73e80943d8261cf1c28bb94c4e2c430c6c1e3783;p=controller.git SupervisorStrategy caught throwable - logging logging stacktrace at warning level patch2: increased timeout for one of the test case as build was failing Change-Id: Ia09dcfacd90f11ad725c7601e0a71ac3983f0dbf Signed-off-by: Basheeruddin Ahmed --- diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardManager.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardManager.java index 3396eb5564..2972772a48 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardManager.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardManager.java @@ -295,7 +295,12 @@ public class ShardManager extends AbstractUntypedActor { new Function() { @Override public SupervisorStrategy.Directive apply(Throwable t) { - LOG.warning("Supervisor Strategy of resume applied {}",t); + StringBuilder sb = new StringBuilder(); + for(StackTraceElement element : t.getStackTrace()) { + sb.append("\n\tat ") + .append(element.toString()); + } + LOG.warning("Supervisor Strategy of resume applied {}",sb.toString()); return SupervisorStrategy.resume(); } } diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ThreePhaseCommitCohortFailureTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ThreePhaseCommitCohortFailureTest.java index 870889b350..34697977a5 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ThreePhaseCommitCohortFailureTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ThreePhaseCommitCohortFailureTest.java @@ -63,7 +63,7 @@ public class ThreePhaseCommitCohortFailureTest extends AbstractActorTest { store.onGlobalContextUpdated(testSchemaContext); } - private FiniteDuration ASK_RESULT_DURATION = Duration.create(3000, TimeUnit.MILLISECONDS); + private FiniteDuration ASK_RESULT_DURATION = Duration.create(5000, TimeUnit.MILLISECONDS); @Test(expected = TestException.class)