ARTEMIS-1114 Improving some comment

This commit is contained in:
Clebert Suconic 2017-04-14 18:07:09 -04:00
parent 09958aa540
commit ee261e736c
1 changed files with 4 additions and 1 deletions

View File

@ -232,7 +232,10 @@ public class JournalTransaction {
public void commit(final JournalFile file) { public void commit(final JournalFile file) {
JournalCompactor compactor = journal.getCompactor(); JournalCompactor compactor = journal.getCompactor();
// The race lies here.... // https://issues.apache.org/jira/browse/ARTEMIS-1114
// There was a race once where compacting was not set
// because the Journal was missing a readLock and compacting was starting
// without setting this properly...
if (compacting && compactor != null) { if (compacting && compactor != null) {
if (logger.isTraceEnabled()) { if (logger.isTraceEnabled()) {
logger.trace("adding tx " + this.id + " into compacting"); logger.trace("adding tx " + this.id + " into compacting");