You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2016/04/22 15:53:36 UTC
activemq git commit: reduce the throughput for ci
Repository: activemq
Updated Branches:
refs/heads/master 930a74c69 -> 43d8205cf
reduce the throughput for ci
Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/43d8205c
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/43d8205c
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/43d8205c
Branch: refs/heads/master
Commit: 43d8205cf020ce2be146fc7c5740a2f9fab8c1e0
Parents: 930a74c
Author: gtully <ga...@gmail.com>
Authored: Fri Apr 22 14:49:19 2016 +0100
Committer: gtully <ga...@gmail.com>
Committed: Fri Apr 22 14:53:14 2016 +0100
----------------------------------------------------------------------
.../kahadb/disk/journal/PreallocationJournalLatencyTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq/blob/43d8205c/activemq-kahadb-store/src/test/java/org/apache/activemq/store/kahadb/disk/journal/PreallocationJournalLatencyTest.java
----------------------------------------------------------------------
diff --git a/activemq-kahadb-store/src/test/java/org/apache/activemq/store/kahadb/disk/journal/PreallocationJournalLatencyTest.java b/activemq-kahadb-store/src/test/java/org/apache/activemq/store/kahadb/disk/journal/PreallocationJournalLatencyTest.java
index 35ab321..d6c64f4 100644
--- a/activemq-kahadb-store/src/test/java/org/apache/activemq/store/kahadb/disk/journal/PreallocationJournalLatencyTest.java
+++ b/activemq-kahadb-store/src/test/java/org/apache/activemq/store/kahadb/disk/journal/PreallocationJournalLatencyTest.java
@@ -51,6 +51,7 @@ public class PreallocationJournalLatencyTest {
File dataDirectory = new File("./target/activemq-data/kahadb" + randInt);
KahaDBStore store = new KahaDBStore();
+ store.setJournalMaxFileLength(16*1204*1024);
store.deleteAllMessages();
store.setDirectory(dataDirectory);
store.setPreallocationStrategy(preallocationStrategy);
@@ -68,7 +69,7 @@ public class PreallocationJournalLatencyTest {
ByteSequence byteSequence = new ByteSequence(new byte[8*1024]);
TimeStatisticImpl timeStatistic = new TimeStatisticImpl("append", "duration");
- for (int i=0;i<300000; i++) {
+ for (int i=0;i<5000; i++) {
final long start = System.currentTimeMillis();
journal.write(byteSequence, true);
timeStatistic.addTime(System.currentTimeMillis() - start);