From b485337ed4537f9f36a047f7ab5a79c3e4b9f4d6 Mon Sep 17 00:00:00 2001 From: Keith Wall Date: Tue, 24 Apr 2012 10:10:24 +0000 Subject: QPID-3936: Add more logging to better understand the ControllerAndClientTest that occasionally fails on a slow CI box git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1329622 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/qpid/disttest/controller/TestRunner.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/qpid/java/perftests/src/main/java/org/apache/qpid/disttest/controller/TestRunner.java b/qpid/java/perftests/src/main/java/org/apache/qpid/disttest/controller/TestRunner.java index f81b691ea6..d07d568858 100644 --- a/qpid/java/perftests/src/main/java/org/apache/qpid/disttest/controller/TestRunner.java +++ b/qpid/java/perftests/src/main/java/org/apache/qpid/disttest/controller/TestRunner.java @@ -133,13 +133,20 @@ public class TestRunner void sendTestSetupCommands() { List commandsForAllClients = _testInstance.createCommands(); - _commandResponseLatch = new CountDownLatch(commandsForAllClients.size()); + final int numberOfCommandsToSend = commandsForAllClients.size(); + _commandResponseLatch = new CountDownLatch(numberOfCommandsToSend); + + LOGGER.debug("About to send {} command(s)", numberOfCommandsToSend); + for (CommandForClient commandForClient : commandsForAllClients) { String configuredClientName = commandForClient.getClientName(); String registeredClientName = _participatingClients.getRegisteredNameFromConfiguredName(configuredClientName); Command command = commandForClient.getCommand(); + + LOGGER.debug("Sending command : {} ", command); + sendCommandInternal(registeredClientName, command); } } -- cgit v1.2.1