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/08/03 17:14:01 UTC

activemq-artemis git commit: NO-JIRA Fixing MultiThreadAsynchronousFileTest on limited servers

Repository: activemq-artemis
Updated Branches:
  refs/heads/master a6ecdcb44 -> a92324be3


NO-JIRA Fixing MultiThreadAsynchronousFileTest on limited servers

This test was initializing a libaio of 21K, that would fail on limited servers.
This is decreasing maxIO so it would requires less resources to run it.


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

Branch: refs/heads/master
Commit: a92324be35affdece16e1c18bf0aef1e63dd4d14
Parents: a6ecdcb
Author: Clebert Suconic <cl...@apache.org>
Authored: Fri Aug 3 13:09:37 2018 -0400
Committer: Clebert Suconic <cl...@apache.org>
Committed: Fri Aug 3 13:09:41 2018 -0400

----------------------------------------------------------------------
 .../unit/core/asyncio/MultiThreadAsynchronousFileTest.java     | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/a92324be/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/asyncio/MultiThreadAsynchronousFileTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/asyncio/MultiThreadAsynchronousFileTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/asyncio/MultiThreadAsynchronousFileTest.java
index e9f51f9..95e94cf 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/asyncio/MultiThreadAsynchronousFileTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/asyncio/MultiThreadAsynchronousFileTest.java
@@ -94,7 +94,7 @@ public class MultiThreadAsynchronousFileTest extends AIOTestBase {
 
    private void executeTest(final boolean sync) throws Throwable {
       MultiThreadAsynchronousFileTest.debug(sync ? "Sync test:" : "Async test");
-      AIOSequentialFileFactory factory = new AIOSequentialFileFactory(getTestDirfile(), 21000);
+      AIOSequentialFileFactory factory = new AIOSequentialFileFactory(getTestDirfile(), 100);
       factory.start();
       factory.disableBufferReuse();
 
@@ -144,10 +144,6 @@ public class MultiThreadAsynchronousFileTest extends AIOTestBase {
 
    }
 
-   private int getNewPosition() {
-      return position.addAndGet(1);
-   }
-
    class ThreadProducer extends Thread {
 
       Throwable failed = null;