mirror of https://github.com/apache/activemq.git
Further patch for https://issues.apache.org/activemq/browse/AMQ-1795
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@669265 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b52624e66b
commit
8d4001ad0b
|
@ -425,6 +425,7 @@ public class AMQPersistenceAdapter implements PersistenceAdapter, UsageListener,
|
|||
}
|
||||
Integer lastDataFile = asyncDataManager.getCurrentDataFileId();
|
||||
inProgress.add(lastDataFile);
|
||||
lastDataFile = asyncDataManager.getMark().getDataFileId();
|
||||
inProgress.addAll(referenceStoreAdapter.getReferenceFileIdsInUse());
|
||||
Location lastActiveTx = transactionStore.checkpoint();
|
||||
if (lastActiveTx != null) {
|
||||
|
|
|
@ -94,12 +94,12 @@ public class MissingDataFileTest extends TestCase {
|
|||
|
||||
SystemUsage systemUsage;
|
||||
systemUsage = new SystemUsage();
|
||||
systemUsage.getMemoryUsage().setLimit(1024 * 10); // Just a few messags
|
||||
systemUsage.getMemoryUsage().setLimit(1024 * 1024); // Just a few messags
|
||||
broker.setSystemUsage(systemUsage);
|
||||
|
||||
AMQPersistenceAdapterFactory factory = (AMQPersistenceAdapterFactory) broker.getPersistenceFactory();
|
||||
factory.setMaxFileLength(2*1024); // ~4 messages
|
||||
factory.setCleanupInterval(5000); // every few second
|
||||
factory.setCleanupInterval(1000); // every few second
|
||||
|
||||
broker.start();
|
||||
LOG.info("Starting broker..");
|
||||
|
|
Loading…
Reference in New Issue