Skip to content

feat(binding-mqtt-kafka): deprecate Kafka-group session ownership (#1797) - #1802

Merged
jfallows merged 1 commit into
developfrom
claude/loving-dirac-O6V9y
May 26, 2026
Merged

jfallows merged 1 commit into
developfrom
claude/loving-dirac-O6V9y

Conversation

@jfallows

@jfallows jfallows commented May 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Deprecation announcement for Kafka consumer-group session ownership in the mqtt-kafka binding (Fixes #1797). Schema preparation plus a runtime warning, with no behavior change — the existing highlander-group ownership coordination in MqttKafkaSessionFactory is untouched.

  • Add an optional store field to the mqtt-kafka binding options schema. It is parsed and validated but unused by code in this release.
  • Log a one-time deprecation warning per binding instance (System.out, guarded to worker 0) when store is not configured, announcing that store will be required in an upcoming release.
  • Wire store through MqttKafkaOptionsConfig, its builder, and the JSON adapter (read + write).

Acceptance criteria

  • Configurations with store declared on mqtt-kafka are accepted (parsed and ignored).
  • Configurations without store are accepted and log the deprecation warning once per binding instance.
  • Existing MqttKafkaSessionFactory behavior is unchanged.

Notes

  • The deprecation warning uses System.out.println rather than the binding event system, since it is temporary and will be removed when store-based ownership lands.
  • CHANGELOG.md is auto-generated from merged PRs (github-changelog format), so it was not hand-edited — the release notes entry will be generated from this PR.
  • The store schema field is currently a free string and is not yet validated against the top-level stores: section, matching the "parsed and ignored" scope for this release.

Test plan

  • SchemaTest validates a new proxy.store.yaml config (10/10 passing).
  • MqttKafkaOptionsConfigAdapterTest covers store read and write (6/6 passing).
  • Confirm CI is green.

https://claude.ai/code/session_0186rZE8mW1U947XTN4kzZ1x


Generated by Claude Code

)

Add an optional, currently-unused `store` field to the mqtt-kafka binding
options so configurations can prepare for StoreHandler-based session
ownership coordination. When `store` is absent, log a one-time deprecation
warning per binding instance announcing the upcoming requirement. Existing
highlander-group ownership behavior is unchanged.

https://claude.ai/code/session_0186rZE8mW1U947XTN4kzZ1x

@jfallows jfallows left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

LGTM

@jfallows
jfallows merged commit e53a358 into develop May 26, 2026
38 checks passed
@jfallows jfallows self-assigned this May 28, 2026
@jfallows
jfallows deleted the claude/loving-dirac-O6V9y branch July 1, 2026 23:06
jfallows pushed a commit that referenced this pull request Jul 8, 2026
The serverRef option was announced deprecated (#1797/#1802) in favor of
the engine-level service.hostname property and is effectively unused.
Ahead of 2.0.0, drop it entirely: the config classes, adapter, schema
property, the dead effective-hostname field it fed on the hot path, and
the deprecation warning it triggered.
jfallows added a commit that referenced this pull request Jul 9, 2026
* Remove deprecated grpc binding services option, enable catalog for client

* Remove grpc binding options

* fix(binding-mqtt-kafka): remove deprecated serverRef option

The serverRef option was announced deprecated (#1797/#1802) in favor of
the engine-level service.hostname property and is effectively unused.
Ahead of 2.0.0, drop it entirely: the config classes, adapter, schema
property, the dead effective-hostname field it fed on the hot path, and
the deprecation warning it triggered.

* fix(engine): remove deprecated Configuration.directory()

EngineConfiguration.directory() and ZillaExtConfiguration.directory()
already override it with their own property-backed implementations, so
the base is a dead-with-no-caller shim once its @OverRide annotations
are dropped. Fix the one caller (TlsWorker's bench harness) that held
its config as the base Configuration type instead of EngineConfiguration.

* fix(command-start): remove deprecated zilla.json config fallback

zilla.yaml has been the config format for years; drop the silent
fallback to a sibling zilla.json file and its deprecation warning.

* fix(engine): remove deprecated ConfigAdapterContext

Its sole capability, readResource, has had zero live callers since the
grpc binding's services option was removed. Delete the interface and
OptionsConfigAdapterSpi.adaptContext, drop the now-pointless context
parameter threaded through the entire config-adapter constructor chain
(OptionsConfigAdapter and every namespace/binding/guard/vault/catalog/
store/exporter/route/kind adapter), and the EngineManager context
implementation that backed it.

binding-asyncapi and binding-openapi were the only two adapters that
used adaptContext for something other than a no-op: constructing nested
tcp/tls/http/mqtt/kafka OptionsConfigAdapter instances. They now build
those lazily on first use instead of via the context callback -- lazily
because OptionsConfigAdapter's constructor enumerates all Kind.BINDING
SPI providers via ServiceLoader, so building them eagerly in the
adapter's own constructor recurses back into constructing themselves.

* fix(binding-kafka): remove deprecated routes[].when[].groupId condition

groupId condition matching existed to route Kafka consumer-group control
traffic (join/sync/heartbeat/offset-commit) by group name before any
topic is known. Traced its origin to mqtt-kafka's old Kafka-group-based
session ownership (a well-known "mqtt-clients" group used when serverRef
was set, see support/1.x), which was itself replaced by Store-based
ownership ahead of 2.0 (#1797/#1806) -- both serverRef and Kafka-group
ownership are already gone. No spec, example, or fixture in this repo,
on this branch or on support/1.x, ever configured routes[].when[].groupId.

Collapsed KafkaBindingConfig's two resolve() overloads into one
(topic-only), simplified KafkaConditionMatcher/KafkaRouteConfig to match
on topic alone, and dropped the now-unused argument at all 10 call sites
across the group/offset-commit/offset-fetch/consumer stream factories --
each factory still threads its own groupId value for wire-protocol and
fan-out-key purposes, only the routing-condition use is gone.

---------

Co-authored-by: Claude <[email protected]>
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.

Deprecate Kafka-group session ownership in mqtt-kafka binding

2 participants