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 22:30:55 UTC

[2/2] activemq-artemis git commit: NO-JIRA Fixing MultiThreadAsynchronousFileTest on limited servers

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.

(cherry picked from commit a92324be35affdece16e1c18bf0aef1e63dd4d14)


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

Branch: refs/heads/2.6.x
Commit: 58add60c35c3319d0c89d150c6c2de09e6d5af3f
Parents: 34043c6
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 18:30:32 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/58add60c/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;