thswlsqls commented on code in PR #17080:
URL: https://github.com/apache/iceberg/pull/17080#discussion_r4162860964
##########
kafka-connect/kafka-connect/src/main/java/org/apache/iceberg/connect/channel/CommitState.java:
##########
@@ -60,12 +60,12 @@ void addResponse(Envelope envelope) {
void addReady(Envelope envelope) {
DataComplete dataComplete = (DataComplete) envelope.event().payload();
- readyBuffer.add(dataComplete);
if (!isCommitInProgress()) {
LOG.warn(
"Received commit ready when no commit in progress, this can happen
during recovery. Commit ID: {}",
dataComplete.commitId());
} else if (Objects.equals(currentCommitId, dataComplete.commitId())) {
+ readyBuffer.add(dataComplete);
receivedPartitionCount += dataComplete.assignments().size();
}
Review Comment:
@bryanck Done in 49e85d15e: `addReady()` now logs a `warn` with both the
dropped and the current commit ID when they don't match.
`TestCommitState` and the rest of the `iceberg-kafka-connect` module still
pass.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]