Skip to content

GH-6101 Remove Kafka SessionTimeout and HeartbeatInterval, which KIP-848 leaves to the broker - #6112

Open
lahma wants to merge 2 commits into
JasperFx:mainfrom
lahma:gh-6101-kafka-kip848-docs
Open

lahma wants to merge 2 commits into
JasperFx:mainfrom
lahma:gh-6101-kafka-kip848-docs

Conversation

@lahma

@lahma lahma commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

On #6101, Hawxy answered:

  • Remove the two options for v7
  • Wait to make any changes in this space until Dekaf gets updated

The change

  • Options removed: KafkaConsumerOptions.SessionTimeout and HeartbeatInterval are gone, along with their mapping onto the consumer builder in KafkaOptionsMapper. Under KIP-848 the broker decides both, and Dekaf sends neither client value.
  • Migration guide: it no longer lists the two as renames of 6.x's SessionTimeoutMs and HeartbeatIntervalMs. It says they have no 7.0 counterpart, and that the broker's group.consumer.session.timeout.ms and group.consumer.heartbeat.interval.ms now set them.
  • Kafka guide: a short Group membership timeouts section under Listener Consumer Settings says the same.
  • next_generation_rebalance_protocol: this test used SessionTimeout as its example of a per-topic ConfigureConsumer(...) override. It now uses MaxPollRecords.

Max poll interval: nothing changes in code. The docs state what 7.0 does today: 6.x's MaxPollIntervalMs has no counterpart, and Dekaf enforces 300 seconds, which ConfigureConsumerBuilders() 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.Kafka builds for net10.0 and net11.0, and Wolverine.Kafka.Tests for net10.0, with no warnings.
  • next_generation_rebalance_protocol, KafkaTransportTests, KafkaPerTenantConfigurationTests and kafka_eos_building_blocks, against the docker-compose broker: all 41 tests passed.
  • npx vitepress build docs succeeds, 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 a MaxPollInterval option.

🤖 Generated with Claude Code

Copilot AI balanced review requested due to automatic review settings December 2, 2026 14:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

lahma and others added 2 commits December 3, 2026 10:55
…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
lahma force-pushed the gh-6101-kafka-kip848-docs branch from c63ccd4 to 42a94c2 Compare December 3, 2026 08:59
@lahma lahma changed the title Kafka docs: SessionTimeout and HeartbeatInterval under KIP-848, and the 5-minute max poll interval GH-6101 Remove Kafka SessionTimeout and HeartbeatInterval, which KIP-848 leaves to the broker Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants