You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2018/09/04 16:51:52 UTC

activemq-artemis git commit: NO-JIRA Using less resources from public clouds on tests

Repository: activemq-artemis
Updated Branches:
  refs/heads/master c811ccbeb -> 2b633ee5c


NO-JIRA Using less resources from public clouds on tests

LibaioTest was failing because of a test that was allocating
500 positions on libaio.
Which may not be available on Travis every time.


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/2b633ee5
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/2b633ee5
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/2b633ee5

Branch: refs/heads/master
Commit: 2b633ee5c5213dffebf83391a6c7c21bc0bff5ed
Parents: c811ccb
Author: Clebert Suconic <cl...@apache.org>
Authored: Tue Sep 4 12:47:26 2018 -0400
Committer: Clebert Suconic <cl...@apache.org>
Committed: Tue Sep 4 12:47:34 2018 -0400

----------------------------------------------------------------------
 .../org/apache/activemq/artemis/jlibaio/test/LibaioTest.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/2b633ee5/artemis-native/src/test/java/org/apache/activemq/artemis/jlibaio/test/LibaioTest.java
----------------------------------------------------------------------
diff --git a/artemis-native/src/test/java/org/apache/activemq/artemis/jlibaio/test/LibaioTest.java b/artemis-native/src/test/java/org/apache/activemq/artemis/jlibaio/test/LibaioTest.java
index 922df37..e663e19 100644
--- a/artemis-native/src/test/java/org/apache/activemq/artemis/jlibaio/test/LibaioTest.java
+++ b/artemis-native/src/test/java/org/apache/activemq/artemis/jlibaio/test/LibaioTest.java
@@ -630,7 +630,7 @@ public class LibaioTest {
 
    @Test
    public void testBlockedCallback() throws Exception {
-      final LibaioContext blockedContext = new LibaioContext(500, true, true);
+      final LibaioContext blockedContext = new LibaioContext(LIBAIO_QUEUE_SIZE, true, true);
       Thread t = new Thread() {
          @Override
          public void run() {
@@ -640,7 +640,7 @@ public class LibaioTest {
 
       t.start();
 
-      int NUMBER_OF_BLOCKS = 5000;
+      int NUMBER_OF_BLOCKS = LIBAIO_QUEUE_SIZE * 10;
 
       final CountDownLatch latch = new CountDownLatch(NUMBER_OF_BLOCKS);