summaryrefslogtreecommitdiff
path: root/qpid/java/perftests/src/main
diff options
context:
space:
mode:
authorKeith Wall <kwall@apache.org>2012-09-07 15:51:58 +0000
committerKeith Wall <kwall@apache.org>2012-09-07 15:51:58 +0000
commit1198e6a7a1e5f2aac1c486027f654c0f9c899b96 (patch)
treef5a2bf323018a357870e1710693434f30c6f3708 /qpid/java/perftests/src/main
parent58f1ccf8a4c985e62959184f37bd02766ef6f11d (diff)
downloadqpid-python-1198e6a7a1e5f2aac1c486027f654c0f9c899b96.tar.gz
QPID-4275: Java Performance Tests - race condition between closing test consumer and test connection
Applied patch from Philip Harvey <phil@philharveyonline.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1382074 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/perftests/src/main')
-rw-r--r--qpid/java/perftests/src/main/java/org/apache/qpid/disttest/client/ParticipantExecutor.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/qpid/java/perftests/src/main/java/org/apache/qpid/disttest/client/ParticipantExecutor.java b/qpid/java/perftests/src/main/java/org/apache/qpid/disttest/client/ParticipantExecutor.java
index bb9ce26f7e..10f62708a4 100644
--- a/qpid/java/perftests/src/main/java/org/apache/qpid/disttest/client/ParticipantExecutor.java
+++ b/qpid/java/perftests/src/main/java/org/apache/qpid/disttest/client/ParticipantExecutor.java
@@ -108,8 +108,16 @@ public class ParticipantExecutor
}
finally
{
+ try
+ {
+ _participant.releaseResources();
+ }
+ catch(Exception e)
+ {
+ LOGGER.error("Participant " + _participant + " unable to release resources", e);
+ }
+
_client.sendResults(result);
- _participant.releaseResources();
}
}
}