Skip to content

KAFKA-14299: Handle TaskCorruptedException during initialization#4

Open
anurag-harness wants to merge 3 commits intotrunkfrom
pr-2
Open

KAFKA-14299: Handle TaskCorruptedException during initialization#4
anurag-harness wants to merge 3 commits intotrunkfrom
pr-2

Conversation

@anurag-harness
Copy link
Collaborator

State stores are initialized from the StreamThread even when the state updater thread is enabled. However, we were missing the corresponding handling of exceptions when thrown directly during the initialization. In particular, TaskCorruptedException would directly fall through to runLoop, and the task would fall out of book-keeping, since the exception is thrown when neither the StreamThread nor the StateUpdater is owning the task.

More detailed description of your change,
if necessary. The PR title and PR message become
the squashed commit message, so use a separate
comment to ping reviewers.

Summary of testing strategy (including rationale)
for the feature or bug fix. Unit and/or integration
tests are expected for any behaviour change and
system tests should be considered for larger changes.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

nofarb and others added 3 commits December 5, 2022 10:45
State stores are initialized from the StreamThread even when
the state updater thread is enabled. However, we were missing
the corresponding handling of exceptions when thrown directly
during the initialization. In particular, TaskCorruptedException
would directly fall through to runLoop, and the task
would fall out of book-keeping, since the exception is thrown
when neither the StreamThread nor the StateUpdater is owning
the task.
@anurag-harness anurag-harness reopened this Dec 5, 2022
@nofarb nofarb force-pushed the trunk branch 2 times, most recently from 4dadf5c to caf9b1b Compare July 5, 2023 18:08
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.

2 participants