Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOSNOW: improve troubleshooting experience for scenario with skipped offsets #883

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -402,13 +402,13 @@ public void insertRecord(SinkRecord kafkaSinkRecord, boolean isFirstRowPerPartit
insertRecords(copiedStreamingBuffer);
}
} else {
LOGGER.debug(
"Skip adding offset:{} to buffer for channel:{} because"
+ " offsetPersistedInSnowflake:{}, processedOffset:{}",
kafkaSinkRecord.kafkaOffset(),
LOGGER.warn(
"Channel {} - skipping current record - expected offset {} but received {}. The current"
+ " offset stored in Snowflake: {}",
this.getChannelNameFormatV1(),
currentOffsetPersistedInSnowflake,
currentProcessedOffset);
currentProcessedOffset,
kafkaSinkRecord.kafkaOffset(),
currentOffsetPersistedInSnowflake);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,13 +324,13 @@ public void insertRecord(SinkRecord kafkaSinkRecord, boolean isFirstRowPerPartit
|| kafkaSinkRecord.kafkaOffset() >= currentProcessedOffset + 1) {
transformAndSend(kafkaSinkRecord);
} else {
LOGGER.debug(
"Skip adding offset:{} to buffer for channel:{} because"
+ " offsetPersistedInSnowflake:{}, processedOffset:{}",
kafkaSinkRecord.kafkaOffset(),
LOGGER.warn(
"Channel {} - skipping current record - expected offset {} but received {}. The current"
+ " offset stored in Snowflake: {}",
this.getChannelNameFormatV1(),
currentOffsetPersistedInSnowflake,
currentProcessedOffset);
currentProcessedOffset,
kafkaSinkRecord.kafkaOffset(),
currentOffsetPersistedInSnowflake);
}
}

Expand Down
Loading