Document ttl and the drain window for Kafka splitting - #293
Open
dmzmk wants to merge 2 commits into
Open
Conversation
Contributor
|
| Filename | Overview |
|---|---|
| docs/sharing-the-cluster/queue-splitting/kafka.md | Documents new two-window lifecycle (idle TTL + drain window) for Kafka splitting sessions; the drainTimeout unset semantics changed silently compared to pre-x.y.z operators, which the hint does not make explicit. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Last splitting session ends] --> B{spec.ttl set and > 0?}
B -- Yes --> C[Idle window\noperator keeps forwarding\nup to spec.ttl seconds]
B -- No --> D[Skip idle window]
C -- New session reconnects --> E[Reuse split instantly\nno restart needed]
C -- ttl elapses, no reconnect --> F[Stop forwarding new messages]
D --> F
F --> G{spec.drainTimeout value?}
G -- "0" --> H[Unpatch immediately\nmessages in temp topic lost]
G -- "N seconds" --> I[Drain window\nwait up to N seconds\nends early if topic empty]
G -- "Unset x.y.z+: no cap" --> J[Wait indefinitely\nuntil backlog consumed]
G -- "Unset pre-x.y.z: same as 0" --> H
I -- New session reconnects --> K[Reuse split\nresume forwarding]
J -- New session reconnects --> K
I -- drained or timeout --> L[Delete temp queues\nUnpatch workload\nrestart onto original topic]
J -- Fully drained --> L
H --> L
Reviews (3): Last reviewed commit: "Rename idelTimeout to ttl" | Re-trigger Greptile
dmzmk
force-pushed
the
INT-498/kafka-idle-timeout
branch
from
July 31, 2026 15:35
ebdafc0 to
77889e4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.