Skip to content

BaseWorkerClientImpl: Don't attempt to recover from a closed channel.#17052

Merged
gianm merged 8 commits intoapache:masterfrom
gianm:msq-workerclient-no-recovery-closed-channel
Sep 15, 2024
Merged

BaseWorkerClientImpl: Don't attempt to recover from a closed channel.#17052
gianm merged 8 commits intoapache:masterfrom
gianm:msq-workerclient-no-recovery-closed-channel

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented Sep 12, 2024

This patch introduces an exception type "ChannelClosedForWritesException", which allows the BaseWorkerClientImpl to avoid retrying when the local channel has been closed. This can happen in cases of cancellation.

This patch introduces an exception type "ChannelClosedForWritesException",
which allows the BaseWorkerClientImpl to avoid retrying when the local
channel has been closed. This can happen in cases of cancellation.
@github-actions github-actions Bot added Area - Batch Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 labels Sep 12, 2024
@gianm gianm added the Bug label Sep 12, 2024
{
final Expectation expectation = expectations.poll();

requestNumber++;

Check failure

Code scanning / CodeQL

User-controlled data in arithmetic expression

This arithmetic expression depends on a [user-provided value](1), potentially causing an overflow.
@gianm gianm merged commit 4dc5942 into apache:master Sep 15, 2024
@gianm gianm deleted the msq-workerclient-no-recovery-closed-channel branch September 15, 2024 09:11
pranavbhole pushed a commit to pranavbhole/druid that referenced this pull request Sep 17, 2024
…apache#17052)

* BaseWorkerClientImpl: Don't attempt to recover from a closed channel.

This patch introduces an exception type "ChannelClosedForWritesException",
which allows the BaseWorkerClientImpl to avoid retrying when the local
channel has been closed. This can happen in cases of cancellation.

* Add some test coverage.

* wip

* Add test coverage.

* Style.
@cryptoe cryptoe added this to the 31.0.0 milestone Oct 9, 2024
cryptoe pushed a commit to cryptoe/druid that referenced this pull request Oct 9, 2024
…apache#17052)

* BaseWorkerClientImpl: Don't attempt to recover from a closed channel.

This patch introduces an exception type "ChannelClosedForWritesException",
which allows the BaseWorkerClientImpl to avoid retrying when the local
channel has been closed. This can happen in cases of cancellation.

* Add some test coverage.

* wip

* Add test coverage.

* Style.

(cherry picked from commit 4dc5942)
cryptoe pushed a commit to cryptoe/druid that referenced this pull request Oct 9, 2024
…apache#17052)

* BaseWorkerClientImpl: Don't attempt to recover from a closed channel.

This patch introduces an exception type "ChannelClosedForWritesException",
which allows the BaseWorkerClientImpl to avoid retrying when the local
channel has been closed. This can happen in cases of cancellation.

* Add some test coverage.

* wip

* Add test coverage.

* Style.

(cherry picked from commit 4dc5942)
abhishekagarwal87 pushed a commit that referenced this pull request Oct 9, 2024
…#17052)

* BaseWorkerClientImpl: Don't attempt to recover from a closed channel.

This patch introduces an exception type "ChannelClosedForWritesException",
which allows the BaseWorkerClientImpl to avoid retrying when the local
channel has been closed. This can happen in cases of cancellation.

* Add some test coverage.

* wip

* Add test coverage.

* Style.

(cherry picked from commit 4dc5942)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area - Batch Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants