Repository navigation
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified in the documentation changes clarifying Kafka timeout behavior.
No open issues 🎉
What changed in this PR
Clarifies Kafka 7.0 timeout behavior under KIP-848, addressing the documentation portion of #6101 without changing APIs or runtime behavior.
Changes:
- Distinguishes client timeout options from broker-controlled group settings.
- Documents the fixed five-minute poll interval and its impact on inline and retry-tier handlers.
- Adds XML documentation for the two heartbeat-related options.
| File | Description |
|---|---|
src/Transports/Kafka/Wolverine.Kafka/KafkaClientOptions.cs |
Clarifies timeout semantics in XML comments. |
docs/guide/migration.md |
Corrects migration guidance and explains the poll interval limit. |
docs/guide/messaging/transports/kafka.md |
Adds group timeout guidance and a long-handler warning. |
Review effort: Balanced
…he 5-minute max poll interval The migration guide listed SessionTimeout and HeartbeatInterval as plain renames of 6.x's SessionTimeoutMs and HeartbeatIntervalMs. Under KIP-848 the broker decides both: SessionTimeout is the client's local tolerance for failing heartbeats and is not sent to the broker, whose group.consumer.session.timeout.ms evicts members, and HeartbeatInterval is used only until the broker sends its group.consumer.heartbeat.interval.ms. The migration guide, the Kafka guide and the XML docs of both options now say so. The migration guide and the Kafka guide also say that 6.x's MaxPollIntervalMs has no 7.0 counterpart, and that Dekaf's 300 s limit makes an inline or retry-tier listener whose handler runs longer leave its group, so the record is processed again elsewhere (thomhurst/Dekaf#4278). Refs JasperFx#6101 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eatInterval Under KIP-848 the broker decides the session timeout and the heartbeat interval, through group.consumer.session.timeout.ms and group.consumer.heartbeat.interval.ms, and Dekaf sends neither client value. The two options are removed for 7.0, with their mapping onto the consumer builder. The migration guide and the Kafka guide now point 6.x's SessionTimeoutMs and HeartbeatIntervalMs to the broker's settings. next_generation_rebalance_protocol used SessionTimeout as its example of a per-topic override; it uses MaxPollRecords now. Refs JasperFx#6101 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lahma
force-pushed
the
gh-6101-kafka-kip848-docs
branch
from
December 3, 2026 08:59
c63ccd4 to
42a94c2
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.
On #6101, Hawxy answered:
The change
KafkaConsumerOptions.SessionTimeoutandHeartbeatIntervalare gone, along with their mapping onto the consumer builder inKafkaOptionsMapper. Under KIP-848 the broker decides both, and Dekaf sends neither client value.SessionTimeoutMsandHeartbeatIntervalMs. It says they have no 7.0 counterpart, and that the broker'sgroup.consumer.session.timeout.msandgroup.consumer.heartbeat.interval.msnow set them.next_generation_rebalance_protocol: this test usedSessionTimeoutas its example of a per-topicConfigureConsumer(...)override. It now usesMaxPollRecords.Max poll interval: nothing changes in code. The docs state what 7.0 does today: 6.x's
MaxPollIntervalMshas no counterpart, and Dekaf enforces 300 seconds, whichConfigureConsumerBuilders()cannot raise. So an inline or retry-tier listener whose handler runs longer than that leaves its group, and the record is processed again elsewhere. The docs link thomhurst/Dekaf#4278, the request to make the setting public.Checked
Wolverine.Kafkabuilds for net10.0 and net11.0, andWolverine.Kafka.Testsfor net10.0, with no warnings.next_generation_rebalance_protocol,KafkaTransportTests,KafkaPerTenantConfigurationTestsandkafka_eos_building_blocks, against the docker-compose broker: all 41 tests passed.npx vitepress build docssucceeds, including its dead-link check.Refs #6101. Following "wait to make any changes in this space until Dekaf gets updated", #6101 stays open for the max poll interval. Once Dekaf exposes
WithMaxPollInterval(thomhurst/Dekaf#4278), the remaining question is whether 7.x gets aMaxPollIntervaloption.🤖 Generated with Claude Code