Revert "Change on buffer timeout..."

This reverts commit 522c399bd27621f7caa5b755656e7272e77b85dd.
This commit is contained in:
Clebert Suconic 2015-07-21 13:57:07 +01:00
parent a298b203a7
commit 82639f590b
3 changed files with 2 additions and 8 deletions

View File

@ -35,12 +35,6 @@ under the License.
<paging-directory>${data.dir}/paging</paging-directory>
<!-- Nanosecond time for batching timeout before IO operations
This will batch multiple writes before IO writes.
Increasing this timeout would benefit scalabitility of multiple
producers and consumers -->
<journal-buffer-timeout>100</journal-buffer-timeout>
<bindings-directory>${data.dir}/bindings</bindings-directory>
<journal-directory>${data.dir}/journal</journal-directory>

View File

@ -75,7 +75,7 @@ public class ArtemisTest
Artemis.main("create", temporaryFolder.getRoot().getAbsolutePath(), "--force", "--silent-input", "--no-web");
System.setProperty("artemis.instance", temporaryFolder.getRoot().getAbsolutePath());
// Some exceptions may happen on the initialization, but they should be ok on start the basic core protocol
Artemis.execute("run");
Artemis.main("run");
Assert.assertEquals(Integer.valueOf(70), Artemis.execute("producer", "--txt-size", "50", "--message-count", "70", "--verbose"));
Assert.assertEquals(Integer.valueOf(70), Artemis.execute("consumer", "--txt-size", "50", "--verbose", "--break-on-null", "--receive-timeout", "100"));

View File

@ -71,7 +71,7 @@ abstract class AbstractSequentialFileFactory implements SequentialFileFactory
{
this.journalDir = journalDir;
if (buffered && bufferTimeout > 0)
if (buffered)
{
timedBuffer = new TimedBuffer(bufferSize, bufferTimeout, logRates);
}