Skip to content

Deprecate Kafka-group session ownership in mqtt-kafka binding #1797

Closed

Description

@jfallows

Background

MqttKafkaSessionFactory coordinates MQTT session ownership using a custom Kafka consumer-group protocol ("highlander", single-active-member) defined in KafkaClientGroupFactory. This mechanism predates the Store SPI and will be replaced by StoreHandler-based ownership coordination in a follow-up release.

This issue covers the deprecation announcement: schema preparation and a runtime warning, with no behavior change.

Proposal

  • Add an optional store field to the mqtt-kafka binding schema. The field is parsed and validated but unused by code in this release.
  • Log a deprecation warning at runtime when store is not configured on a mqtt-kafka binding.
  • Code path continues to use the existing highlander-group ownership coordination. No functional change in this release.

Suggested warning text

WARN [mqtt-kafka0] Session ownership coordination via Kafka consumer group
is deprecated. The 'store' option will be required in an upcoming release.
To prepare, configure a store reference on this binding:

  stores:
    memory0:
      type: memory

  bindings:
    mqtt-kafka0:
      options:
        store: memory0

In scope

  • Schema change: add optional store field on mqtt-kafka binding.
  • Runtime deprecation warning when store is absent.
  • Release notes entry announcing the upcoming requirement.

Acceptance criteria

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

References

  • runtime/binding-mqtt-kafka/src/main/java/io/aklivity/zilla/runtime/binding/mqtt/kafka/internal/config/MqttKafkaOptionsConfig.java
  • runtime/binding-mqtt-kafka/src/main/resources/META-INF/zilla/mqtt-kafka.schema.json

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions