cadonna opened a new pull request, #14265:
URL: https://github.com/apache/kafka/pull/14265

   When a Streams application is subscribed with a pattern to input topics and 
an input topic is deleted, the stream thread transists to PARTITIONS_REVOKED 
and a rebalance is triggered. This happens inside the poll call. Sometimes, the 
poll call returns before a new assignment is received. That means, Streams 
executes the poll loop in state PARTITIONS_REVOKED.
   
   With the state updater enabled processing is also executed in states other 
than RUNNING and so processing is also executed when the stream thread is in 
state PARTITION_REVOKED. However, that triggers an IllegalStateException with 
error message:
   No current assignment for partition TEST-TOPIC-A-0 which is a fatal error.
   
   This commit prevents processing when the stream thread is in state 
PARTITIONS_REVOKED.
   
   *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)
   


-- 
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]

Reply via email to