DBZ-6094 Reduce frequency of "Transaction already processed" debug message
This commit is contained in:
parent
728382f453
commit
0771923416
@ -379,10 +379,12 @@ protected void handleCommit(OraclePartition partition, LogMinerEventRow row) thr
|
||||
|
||||
final Scn commitScn = row.getScn();
|
||||
if (offsetContext.getCommitScn().hasCommitAlreadyBeenHandled(row)) {
|
||||
final Scn lastCommittedScn = offsetContext.getCommitScn().getCommitScnForRedoThread(row.getThread());
|
||||
LOGGER.debug("Transaction {} has already been processed. "
|
||||
+ "Offset Commit SCN {}, Transaction Commit SCN {}, Last Seen Commit SCN {}.",
|
||||
transactionId, offsetContext.getCommitScn(), commitScn, lastCommittedScn);
|
||||
if (transaction.getNumberOfEvents() > 0) {
|
||||
final Scn lastCommittedScn = offsetContext.getCommitScn().getCommitScnForRedoThread(row.getThread());
|
||||
LOGGER.debug("Transaction {} has already been processed. "
|
||||
+ "Offset Commit SCN {}, Transaction Commit SCN {}, Last Seen Commit SCN {}.",
|
||||
transactionId, offsetContext.getCommitScn(), commitScn, lastCommittedScn);
|
||||
}
|
||||
removeTransactionAndEventsFromCache(transaction);
|
||||
metrics.setActiveTransactions(getTransactionCache().size());
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user