This closes #3644
This commit is contained in:
commit
d800957bfb
|
@ -935,7 +935,6 @@ public class JournalImpl extends JournalBase implements TestableJournal, Journal
|
||||||
throw ActiveMQJournalBundle.BUNDLE.recordLargerThanStoreMax(addRecordEncodeSize, maxRecordSize);
|
throw ActiveMQJournalBundle.BUNDLE.recordLargerThanStoreMax(addRecordEncodeSize, maxRecordSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
final SimpleFuture<Boolean> result = newSyncAndCallbackResult(sync, callback);
|
|
||||||
appendExecutor.execute(new Runnable() {
|
appendExecutor.execute(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
@ -952,12 +951,9 @@ public class JournalImpl extends JournalBase implements TestableJournal, Journal
|
||||||
", usedFile = " +
|
", usedFile = " +
|
||||||
usedFile);
|
usedFile);
|
||||||
}
|
}
|
||||||
result.set(true);
|
|
||||||
} catch (ActiveMQShutdownException e) {
|
} catch (ActiveMQShutdownException e) {
|
||||||
result.fail(e);
|
|
||||||
logger.error("appendAddRecord:" + e, e);
|
logger.error("appendAddRecord:" + e, e);
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
result.fail(e);
|
|
||||||
setErrorCondition(callback, null, e);
|
setErrorCondition(callback, null, e);
|
||||||
logger.error("appendAddRecord::" + e, e);
|
logger.error("appendAddRecord::" + e, e);
|
||||||
} finally {
|
} finally {
|
||||||
|
@ -965,8 +961,6 @@ public class JournalImpl extends JournalBase implements TestableJournal, Journal
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
result.get();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue