You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kw...@apache.org on 2017/06/22 08:56:58 UTC
qpid-broker-j git commit: QPID-7791: Fix test failure introduced (on
master only) at 95ee1329
Repository: qpid-broker-j
Updated Branches:
refs/heads/master 820d00416 -> a7c4109f1
QPID-7791: Fix test failure introduced (on master only) at 95ee1329
Project: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/commit/a7c4109f
Tree: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/tree/a7c4109f
Diff: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/diff/a7c4109f
Branch: refs/heads/master
Commit: a7c4109f1309183c64c8a6411ef4751799521d2b
Parents: 820d004
Author: Keith Wall <kw...@apache.org>
Authored: Thu Jun 22 09:55:44 2017 +0100
Committer: Keith Wall <kw...@apache.org>
Committed: Thu Jun 22 09:56:10 2017 +0100
----------------------------------------------------------------------
.../qpid/server/store/VirtualHostMessageStoreTest.java | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-broker-j/blob/a7c4109f/systests/src/test/java/org/apache/qpid/server/store/VirtualHostMessageStoreTest.java
----------------------------------------------------------------------
diff --git a/systests/src/test/java/org/apache/qpid/server/store/VirtualHostMessageStoreTest.java b/systests/src/test/java/org/apache/qpid/server/store/VirtualHostMessageStoreTest.java
index d7d94e4..66c93a4 100644
--- a/systests/src/test/java/org/apache/qpid/server/store/VirtualHostMessageStoreTest.java
+++ b/systests/src/test/java/org/apache/qpid/server/store/VirtualHostMessageStoreTest.java
@@ -36,6 +36,7 @@ import javax.security.auth.Subject;
import com.fasterxml.jackson.databind.ObjectMapper;
+import org.apache.qpid.server.bytebuffer.QpidByteBuffer;
import org.apache.qpid.server.filter.AMQPFilterTypes;
import org.apache.qpid.server.exchange.ExchangeDefaults;
import org.apache.qpid.server.model.BrokerTestHelper;
@@ -93,6 +94,10 @@ public class VirtualHostMessageStoreTest extends QpidTestCase
public static final String SELECTOR_VALUE = "Test = 'MST'";
public static final String LVQ_KEY = "MST-LVQ-KEY";
+ private static final int BUFFER_SIZE = 10;
+ private static final int POOL_SIZE = 20;
+ private static final double SPARSITY_FRACTION = 1.0;
+
private String nonDurableExchangeName = "MST-NonDurableDirectExchange";
private String directExchangeName = "MST-DirectExchange";
private String topicExchangeName = "MST-TopicExchange";
@@ -119,10 +124,14 @@ public class VirtualHostMessageStoreTest extends QpidTestCase
private VirtualHostNode<?> _node;
private TaskExecutor _taskExecutor;
+ @Override
public void setUp() throws Exception
{
super.setUp();
+ QpidByteBuffer.deinitialisePool();
+ QpidByteBuffer.initialisePool(BUFFER_SIZE, POOL_SIZE, SPARSITY_FRACTION);
+
String nodeName = "node" + getName();
String hostName = "host" + getName();
_storePath = Files.createTempDirectory("qpid-work-" + getClassQualifiedTestName() + "-").toString();
@@ -174,6 +183,7 @@ public class VirtualHostMessageStoreTest extends QpidTestCase
}
finally
{
+ QpidByteBuffer.deinitialisePool();
_taskExecutor.stopImmediately();
super.tearDown();
FileUtils.delete(new File(_storePath), true);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org