chickenchickenlove commented on PR #23773: URL: https://github.com/apache/kafka/pull/23773#issuecomment-6948793975
@lucasbru Of course! Just for our memories: There were two issues we originally intended to address in this ticket: 1. When a callback fails, the assigned partitions may become inconsistent with the subscription state. 2. When the `assigned partitions` differ from those in the `subscription state`, an `IllegalStateException` is thrown, preventing the Streams application from recovering. Regarding the first issue, based on your advice yesterday in KAFKA-21188, it seems that when the Application Thread terminates, it also triggers the shutdown of the Network Thread. Therefore, I think we can safely ignore this issue in most cases. However, the case where a callback throws a TaskCorruptedException might follow a different path, so it would require further investigation. If we can consider the first issue resolved for now, assuming that most cases are already handled by the Application Thread, I believe the second issue still needs to be fixed. In #24250, I had addressed the second issue by transitioning the member state to FATAL and sending an error event to the Application Thread to trigger shutdown. I think we may need a similar approach here. As you suggested, I'd like to discuss the implementation details further once #24250 is completed! I'm bringing this up now simply because I wanted to document and share what we currently know and the important points we should keep in mind. Let's discuss this further after KAFKA-21188 is resolved! 🙇♂️ -- 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]
