Skip to content

Conversation

@mzitnik
Copy link
Contributor

@mzitnik mzitnik commented Jun 8, 2025

Summary

Closes #15 #14

Checklist

Delete items not relevant to your PR:

@mzitnik mzitnik linked an issue Jun 9, 2025 that may be closed by this pull request
mzitnik added 5 commits June 24, 2025 18:33
# Conflicts:
#	flink-connector-clickhouse-base/src/test/java/org/apache/flink/connector/clickhouse/sink/ClickHouseSinkTests.java
@mzitnik mzitnik marked this pull request as ready for review June 30, 2025 06:07
@mzitnik mzitnik requested a review from BentsiLeviav June 30, 2025 06:07
@mshustov
Copy link
Member

/windsurf-review

Copy link

@windsurf-bot windsurf-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other comments (6)

💡 To request another review, post a new comment with "/windsurf-review".

firstElement.incrementAttempts();
if (firstElement.getAttemptCount() <= this.numberOfRetries) {
totalBatchRetriesCounter.inc();
LOG.warn("Retriable exception occurred while processing request. Left attempts {}.", this.numberOfRetries - (firstElement.getAttemptCount() - 1) );
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The calculation for remaining retry attempts is incorrect. Since getAttemptCount() is called after incrementing the counter, the correct calculation should be this.numberOfRetries - firstElement.getAttemptCount().

Suggested change
LOG.warn("Retriable exception occurred while processing request. Left attempts {}.", this.numberOfRetries - (firstElement.getAttemptCount() - 1) );
LOG.warn("Retriable exception occurred while processing request. Left attempts {}.", this.numberOfRetries - firstElement.getAttemptCount());

@mshustov mshustov requested a review from chernser July 3, 2025 08:35
@mshustov mshustov requested a review from BentsiLeviav July 7, 2025 08:30
@mzitnik mzitnik merged commit 6ec4fc9 into main Jul 7, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Failure & Retry Metrics DataStreamAPI

4 participants