Skip to content

Commit

Permalink
0003559: Log expiration of data gaps at info level
Browse files Browse the repository at this point in the history
  • Loading branch information
mmichalek committed May 10, 2018
1 parent 927d5e4 commit 71c65c4
Showing 1 changed file with 7 additions and 9 deletions.
Expand Up @@ -237,15 +237,13 @@ public void afterRouting() {
expireChecked++;
}
if (isAllDataRead || isGapEmpty) {
if (log.isDebugEnabled()) {
if (dataGap.getStartId() == dataGap.getEndId()) {
log.debug("Found a gap in data_id at {}. Skipping it because " +
(supportsTransactionViews ? "there are no pending transactions" : "the gap expired"), dataGap.getStartId());
} else {
log.debug("Found a gap in data_id from {} to {}. Skipping it because " +
(supportsTransactionViews ? "there are no pending transactions" : "the gap expired"),
dataGap.getStartId(), dataGap.getEndId());
}
if (dataGap.getStartId() == dataGap.getEndId()) {
log.info("Found a gap in data_id at {}. Skipping it because " +
(supportsTransactionViews ? "there are no pending transactions" : "the gap expired"), dataGap.getStartId());
} else {
log.info("Found a gap in data_id from {} to {}. Skipping it because " +
(supportsTransactionViews ? "there are no pending transactions" : "the gap expired"),
dataGap.getStartId(), dataGap.getEndId());
}
gapsDeleted.add(dataGap);
gapsAll.remove(dataGap);
Expand Down

0 comments on commit 71c65c4

Please sign in to comment.