Skip to content

mqtt-kafka: reusing a client id right after disconnect can briefly fail to connect #3103

Closed

Description

@jfallows

Problem

Connecting with a client id immediately after the previous connection with the same client id disconnected can briefly fail (the new connection is refused or closed) before succeeding on retry. Observed against the mqtt.kafka.proxy example with MQTT 5 clients.

Expected

A client id whose previous connection has closed can reconnect immediately. The session for that client id is released as part of disconnect handling, or a new connection waits for release rather than failing.

To investigate

  • Session release ordering on DISCONNECT/abort versus a new CONNECT for the same client id in the mqtt server and mqtt-kafka session handling (session topic, will, expiry signals).
  • Reproduce with a spec/IT of back-to-back CONNECT/DISCONNECT/CONNECT for the same client id before fixing (test-first). Determine whether this is the same root cause as the concurrent-connect 0x8E issue, and say so if it is.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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