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

   A segmented store (window and session stores) keeps its changelog offsets in 
its segments. Without a segment, `AbstractSegments#commit` has nothing to write 
to and `AbstractSegments#committedOffset` returns `null`, while opening the 
store has already created its directory.
   
   Under exactly-once, `ProcessorStateManager#initializeStoreOffsets` then 
treats the task as corrupted every time it is initialized on an instance that 
has its task directory (after a restart, a rebalance, or a switch between 
active and standby). The whole task is wiped and restored, and the restore 
creates the same empty store directory again, so it repeats. A corrupted active 
task also triggers a rebalance. A store has no segment when it was never 
written.
   
   This patch reports the offset of a segmented store without segments as 
`OFFSET_UNKNOWN`, which is what a key-value store commits when it has no offset 
and whatady accepts. There is no local data in that


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