DBZ-8143 Add LogMiner start mining session retry attempt counter to logs

This commit is contained in:
Chris Cranford 2024-08-13 11:06:21 -04:00 committed by Chris Cranford
parent 497d791436
commit 362e766d79

View File

@ -606,7 +606,8 @@ private OffsetDateTime getDatabaseSystemTime(OracleConnection connection) throws
* @throws SQLException if mining session failed to start
*/
public boolean startMiningSession(OracleConnection connection, Scn startScn, Scn endScn, int attempts) throws SQLException {
LOGGER.debug("Starting mining session startScn={}, endScn={}, strategy={}, continuous={}", startScn, endScn, strategy, continuousMining);
LOGGER.debug("Starting mining session startScn={}, endScn={}, strategy={}, continuous={}, attempts={}/{}", startScn, endScn, strategy, continuousMining, attempts,
MINING_START_RETRIES);
try {
Instant start = Instant.now();
// NOTE: we treat startSCN as the _exclusive_ lower bound for mining,