diff options
| author | Keith Wall <kwall@apache.org> | 2014-11-06 14:29:32 +0000 |
|---|---|---|
| committer | Keith Wall <kwall@apache.org> | 2014-11-06 14:29:32 +0000 |
| commit | 2f4bf9476f38bee374f2e164d8455bd62c2b6bcb (patch) | |
| tree | 364d17e1333ac0777e8b259b59838bd99c385892 /qpid/java/bdbstore | |
| parent | e054c7a1153c0b112efda73c524e6da3c1b252f6 (diff) | |
| download | qpid-python-2f4bf9476f38bee374f2e164d8455bd62c2b6bcb.tar.gz | |
NO-JIRA: [Java Tests] MultiNodeTest - restore thread name after starting a JE ReplicationEnvironment to avoid confusing thread names on subsequent tests
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1637119 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/bdbstore')
| -rw-r--r-- | qpid/java/bdbstore/systests/src/test/java/org/apache/qpid/server/store/berkeleydb/replication/MultiNodeTest.java | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/qpid/java/bdbstore/systests/src/test/java/org/apache/qpid/server/store/berkeleydb/replication/MultiNodeTest.java b/qpid/java/bdbstore/systests/src/test/java/org/apache/qpid/server/store/berkeleydb/replication/MultiNodeTest.java index 1e2169d3a2..50ca39c83b 100644 --- a/qpid/java/bdbstore/systests/src/test/java/org/apache/qpid/server/store/berkeleydb/replication/MultiNodeTest.java +++ b/qpid/java/bdbstore/systests/src/test/java/org/apache/qpid/server/store/berkeleydb/replication/MultiNodeTest.java @@ -462,15 +462,24 @@ public class MultiNodeTest extends QpidBrokerTestCase envConfig.setDurability(new Durability(Durability.SyncPolicy.SYNC, Durability.SyncPolicy.WRITE_NO_SYNC, Durability.ReplicaAckPolicy.SIMPLE_MAJORITY)); ReplicatedEnvironment intruder = null; + final String currentThreadName = Thread.currentThread().getName(); try { + intruder = new ReplicatedEnvironment(environmentPathFile, replicationConfig, envConfig); } finally { - if (intruder != null) + try + { + if (intruder != null) + { + intruder.close(); + } + } + finally { - intruder.close(); + Thread.currentThread().setName(currentThreadName); } } |
