Skip to content

binding-kafka: reconnectAttempt in KafkaClientApiFactory is never reset #3256

Closed

Description

@jfallows

Problem

By reading KafkaClientApiFactory (found while working on #3213; not run): the reconnectAttempt counter of the API client is incremented on a reconnect but never reset after a successful connection, so the back-off for a later reconnect keeps growing from where an earlier outage left it.

First step (verify before changing code)

Write a scenario that shows it: a reconnect after an earlier successful reconnect uses the back-off of the first attempt rather than starting again. If it cannot be shown, or the counter is reset elsewhere, record the analysis on this issue and close it as not planned. Compare with how the fetch and produce factories reset their own reconnect state and mirror that.

Test plan (test-first)

Scripts under specs/binding-kafka.spec and a runtime IT method in the existing API IT class; the first commit holds the failing test.

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

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