abbccdda opened a new pull request #8681:
URL: https://github.com/apache/kafka/pull/8681


   Standby task could also at risk of getting into illegal state when not being 
closed during `HandleLostAll`
   
   1. The standby task was initializing as `CREATED` state, and task corrupted 
exception was thrown from registerStateStores
   
   2. The task corrupted exception was caught, and do a non-affected task commit
   
   3. The task commit failed due to task migrated exception
   
   4. The handleLostAll didn't close the standby task, leaving it as CREATED 
state
   
   5. Next rebalance complete, the same task was assigned back as standby task.
   
   6. Illegal Argument exception caught as state store already registered
   
   ### 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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to