Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b69H5rTewUKPyhGS8r
16 lines
801 B
Plaintext
16 lines
801 B
Plaintext
A consumer JVM processes records (50 ms each) and commits every 20. We stop it after it has
|
|
processed 30 records (20 committed + 10 in flight). A standby consumer is already in the group.
|
|
session.timeout.ms=6000 (the broker's minimum).
|
|
|
|
SIGTERM (what Kubernetes sends on scale-down):
|
|
child had processed 31, committed 20 at the moment of the signal
|
|
standby's first record: offset 20 after 108 ms
|
|
records processed twice (child processed 31, standby restarted at 20): 11
|
|
|
|
SIGKILL (pod crash, node loss):
|
|
child had processed 30, committed 20 at the moment of the signal
|
|
standby's first record: offset 20 after 5481 ms
|
|
records processed twice (child processed 30, standby restarted at 20): 10
|
|
|
|
Both replay the uncommitted tail (at-least-once). Only SIGKILL also waits out session.timeout.ms.
|