Details
Description
We have an optimization in Log to avoid the need to scan the log to build producer state during the upgrade path. Basically, if no producer snapshot exists, then we assume that it's an upgrade and take a new snapshot from the end of the log. Unfortunately, it can happen that snapshot files are never created or are deleted through truncation. Upon reinitialization, this can cause the optimization above to kick in and we lose the current state of all producers.
Attachments
Issue Links
- is duplicated by
-
KAFKA-5436 NullPointerException when loading producer snapshot
-
- Resolved
-
- links to