sunm2n commented on PR #23390: URL: https://github.com/apache/kafka/pull/23390#issuecomment-6813182218
@bbejeck could you take a look at this one? It is a 4.3.0 regression from #21946: since then `RocksDBStore#openDB` wraps the invalid-state failure in `TaskCorruptedException` under EOS, but `GlobalStreamThread#initialize` only wipes on `InvalidOffsetException`, so a corrupted global store crash-loops instead of being wiped and restored (user report with reproduction on 4.3.2 in KAFKA-21034). On the design question raised earlier (why there are two wipes): the state-manager one was added in #21795 for consistency with the task-level EOS handling, and [as noted there](https://github.com/apache/kafka/pull/21795#discussion_r2951823581) it is expected to go away with KIP-892. So I kept this PR to the thread-side path only and did not try to unify them. I just merged trunk into the branch; CI has not run yet, so `ci-approved` would be needed. If the fix looks right, would a backport to 4.4 and 4.3 be reasonable? @UladzislauBlok the test cleanup you asked for was applied in September; could you re-review when you have a moment so the "changes requested" state clears? -- 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]
