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

   `initializeShareGroupState` casts `groups.get(groupId)` to `ShareGroup`
   without checking it. It runs after the asynchronous persister call
   that follows a share group heartbeat or an `AlterShareGroupOffsets`
   request, so the group may have been deleted, and its id reused by
   another group type, in the meantime. The write then fails with a
   `NullPointerException` or a `ClassCastException`, which the
   coordinator logs at error level before scheduling a write to
   uninitialize the state.
   
   This patch returns an empty result when the group does not exist or
   is not a share group, since the state metadata of the group was
   deleted with it, and adds a test.
   
   


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