Skip to content

Commit

Permalink
Merge branch 'master' of http://git.navis.lan/scm/n4fra/debezium
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyIg committed Mar 11, 2020
2 parents 77e567e + af6f8a3 commit 76f9f80
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public int processResult(ResultSet resultSet) {

// DDL
if (operationCode == RowMapper.DDL) {
LOGGER.debug("DDL, {}", logMessage);
LOGGER.debug("DDL: {}, REDO_SQL {}", logMessage, redo_sql);
continue;
// todo parse, add to the collection.
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,9 @@ public void execute(ChangeEventSourceContext context) throws InterruptedExceptio
Optional<Long> oldestScnToAbandonTransactions = LogMinerHelper.getLastScnFromTheOldestOnlineRedo(connection, offsetContext.getScn());
oldestScnToAbandonTransactions.ifPresent(nextOldestScn -> {
transactionalBuffer.abandonLongTransactions(nextOldestScn);
offsetContext.setScn(nextOldestScn);
LOGGER.debug("After abandoning, offset before: {}, offset after:{}", offsetContext.getScn(), nextOldestScn);
offsetContext.setScn(nextOldestScn);
lastProcessedScn = transactionalBuffer.getLargestScn().equals(BigDecimal.ZERO) ? nextScn : transactionalBuffer.getLargestScn().longValue();
});

LogMinerHelper.setRedoLogFilesForMining(connection, lastProcessedScn);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public final class TransactionalBuffer {
* @return largest last SCN in the buffer among all transactions
*/
public BigDecimal getLargestScn() {
calculateLargestScn();
return largestScn;
}

Expand Down

0 comments on commit 76f9f80

Please sign in to comment.