activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject activemq git commit: reduce the throughput for ci
Date Fri, 22 Apr 2016 13:53:36 GMT
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 <gary.tully@gmail.com>
Authored: Fri Apr 22 14:49:19 2016 +0100
Committer: gtully <gary.tully@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);


Mime
View raw message