Skip to content

MSQ WorkerResource: Fix timeout handler for httpGetChannelData.#17328

Merged
abhishekagarwal87 merged 1 commit intoapache:masterfrom
gianm:fix-wr-logic-error
Oct 11, 2024
Merged

MSQ WorkerResource: Fix timeout handler for httpGetChannelData.#17328
abhishekagarwal87 merged 1 commit intoapache:masterfrom
gianm:fix-wr-logic-error

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented Oct 11, 2024

The timeout handler should fire if the response has not been handled yet (i.e. if responseResolved was previously false). However, it erroneously fires only if the response was handled. This causes HTTP 500 errors if the timeout actually does fire. The timeout is 30 seconds, which can be hit during pipelined queries, if an earlier stage of the query hasn't produced its first frame within 30 seconds.

This fixes a regression introduced in #17140.

The timeout handler should fire if the response has not been handled yet
(i.e. if responseResolved was previously false). However, it erroneously
fires only if the response *was* handled. This causes HTTP 500 errors if
the timeout actually does fire. The timeout is 30 seconds, which can be
hit during pipelined queries, if an earlier stage of the query hasn't
produced its first frame within 30 seconds.

This fixes a regression introduced in apache#17140.
@gianm gianm added the Bug label Oct 11, 2024
@github-actions github-actions Bot added Area - Batch Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 labels Oct 11, 2024
@abhishekagarwal87 abhishekagarwal87 merged commit a0c29f8 into apache:master Oct 11, 2024
@abhishekagarwal87 abhishekagarwal87 added this to the 31.0.0 milestone Oct 11, 2024
abhishekagarwal87 pushed a commit to abhishekagarwal87/druid that referenced this pull request Oct 11, 2024
…he#17328)

The timeout handler should fire if the response has not been handled yet
(i.e. if responseResolved was previously false). However, it erroneously
fires only if the response *was* handled. This causes HTTP 500 errors if
the timeout actually does fire. The timeout is 30 seconds, which can be
hit during pipelined queries, if an earlier stage of the query hasn't
produced its first frame within 30 seconds.

This fixes a regression introduced in apache#17140.
kfaraz pushed a commit that referenced this pull request Oct 11, 2024
…) (#17330)

The timeout handler should fire if the response has not been handled yet
(i.e. if responseResolved was previously false). However, it erroneously
fires only if the response *was* handled. This causes HTTP 500 errors if
the timeout actually does fire. The timeout is 30 seconds, which can be
hit during pipelined queries, if an earlier stage of the query hasn't
produced its first frame within 30 seconds.

This fixes a regression introduced in #17140.

Co-authored-by: Gian Merlino <gianmerlino@gmail.com>
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.

3 participants