Fix journal compact test slow appender loop counters
This commit is contained in:
parent
fa191ba4c6
commit
a6a03d4985
|
@ -486,7 +486,7 @@ public class JournalCleanupCompactStressTest extends ActiveMQTestBase {
|
||||||
while (running) {
|
while (running) {
|
||||||
long[] ids = new long[5];
|
long[] ids = new long[5];
|
||||||
// Append
|
// Append
|
||||||
for (int i = 0; running & i < ids.length; i++) {
|
for (int i = 0; running && i < ids.length; i++) {
|
||||||
System.out.println("append slow");
|
System.out.println("append slow");
|
||||||
ids[i] = JournalCleanupCompactStressTest.idGen.generateID();
|
ids[i] = JournalCleanupCompactStressTest.idGen.generateID();
|
||||||
maxRecords.acquire();
|
maxRecords.acquire();
|
||||||
|
@ -500,7 +500,7 @@ public class JournalCleanupCompactStressTest extends ActiveMQTestBase {
|
||||||
rwLock.readLock().lock();
|
rwLock.readLock().lock();
|
||||||
}
|
}
|
||||||
// Delete
|
// Delete
|
||||||
for (int i = 0; running & i < ids.length; i++) {
|
for (int i = 0; running && i < ids.length; i++) {
|
||||||
System.out.println("Deleting");
|
System.out.println("Deleting");
|
||||||
maxRecords.release();
|
maxRecords.release();
|
||||||
journal.appendDeleteRecord(ids[i], false);
|
journal.appendDeleteRecord(ids[i], false);
|
||||||
|
|
Loading…
Reference in New Issue