mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-21 01:15:50 +00:00
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.
This commit is contained in:
parent
a6ecdcb44f
commit
a92324be35
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user