Skip to content

4.x: CqlPrepareHandler leaks lifecycle resources on synchronous setup failure #1014

Description

@dkropachev

Problem

CqlPrepareHandler.onThrottleReady() does not contain synchronous failures from request setup or channel.write(). The stream ID is released by sendRequest(), but the exception can escape registration while the result, timeout, and throttler permit remain active.

Consequences include a lost concurrency permit, an orphaned timeout, no returned failed stage, and propagation through an unrelated request when admission is delayed.

Expected behavior

Contain synchronous setup failures, complete the result exceptionally, cancel scheduled work, release the stream-ID reservation, and return the throttler permit exactly once.

Related

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