Skip to content

Conversation

@squah-confluent
Copy link
Contributor

@squah-confluent squah-confluent commented Apr 1, 2025

Previously in KAFKA-18484, we added exception handling for exceptions
coming from batch events. Also handle exceptions from 0-record write
events and transaction completion events.

Reviewers: David Jacot djacot@confluent.io

Previously in KAFKA-18484, we added exception handling for exceptions
coming from batch events. Also handle exceptions from 0-record write
events and transaction completion events.
@github-actions github-actions bot added the triage PRs from the community label Apr 1, 2025
@squah-confluent
Copy link
Contributor Author

Depends upon #19332 and won't compile without it.

@dajac dajac removed the triage PRs from the community label Apr 1, 2025
runtime.scheduleLoadOperation(TP, 10);
CoordinatorRuntime<MockCoordinatorShard, String>.CoordinatorContext ctx = runtime.contextOrThrow(TP);

// Get the max batch size.
Copy link
Member

Choose a reason for hiding this comment

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

I wonder why we changed the old test vs adding a new one for the new discovered cases. Is the old test not necessary any more?

Copy link
Contributor Author

@squah-confluent squah-confluent Apr 1, 2025

Choose a reason for hiding this comment

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

I put all three cases in the same test.

Previously, write#2 existed to test the exception handling (it would not be completed if there was none) and write#3 triggered a flush. Write#2 is unnecessary in the unload case and the flush is now triggered by the transaction completion.

Copy link
Member

@dajac dajac left a comment

Choose a reason for hiding this comment

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

lgtm

@dajac dajac merged commit d7fa406 into apache:trunk Apr 3, 2025
25 checks passed
@dajac dajac deleted the squah-coordinator-runtime-exception-handling-follow-up branch April 3, 2025 12:16
janchilling pushed a commit to janchilling/kafka that referenced this pull request Apr 4, 2025
…pache#19333)

Previously in KAFKA-18484, we added exception handling for exceptions
coming from batch events. Also handle exceptions from 0-record write
events and transaction completion events.

Reviewers: David Jacot <djacot@confluent.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants