Skip to content

Conversation

@devozerov
Copy link
Contributor

@devozerov devozerov commented Sep 10, 2025

Description

Before the fix, ThreadPerDriverTaskExecutor.removeTask performed task destruction under a global lock which may lead to an unnecessary contention with HTTP threads attempting to add new tasks potentially leading to a cluster-wide instability.

After the fix, the task destructor logic is executed outside the lock.

Additional context and related issues

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text:

## General
* Improve cluster stability when querying slow data sources and queries terminate early or are cancelled.

Before the fix, ThreadPerDriverTaskExecutor.removeTask performed task destruction under a global lock which may lead to an unnecessary contention with HTTP threads attempting to add new tasks.
@cla-bot cla-bot bot added the cla-signed label Sep 10, 2025
@martint martint merged commit 54831bb into trinodb:master Sep 11, 2025
95 checks passed
@github-actions github-actions bot added this to the 477 milestone Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants