Skip to content

Fix potential deadlock in FTE scheduler#16031

Merged
arhimondr merged 1 commit intotrinodb:masterfrom
arhimondr:fix-fte-deadlock
Feb 10, 2023
Merged

Fix potential deadlock in FTE scheduler#16031
arhimondr merged 1 commit intotrinodb:masterfrom
arhimondr:fix-fte-deadlock

Conversation

@arhimondr
Copy link
Contributor

Description

Split enumeration is stopped when there are enough tasks to be scheduled in the task queue. However split enumeration should continue for stages that have at least one "open" task (task that doesn't have the complete set of splits assigned). Otherwise there is a chance that "open" tasks may never finish and split enumeration process may never get resumed.

Additional context and related issues

#16029

Release notes

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

# Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Feb 8, 2023
Split enumeration is stopped when there are enough tasks to be scheduled
in the task queue. However split enumeration should continue for stages
that have at least one "open" task (task that doesn't have the complete
set of splits assigned). Otherwise there is a chance that "open"
tasks may never finish and split enumeration process may never get
resumed.
@arhimondr arhimondr merged commit e589152 into trinodb:master Feb 10, 2023
@arhimondr arhimondr deleted the fix-fte-deadlock branch February 10, 2023 01:24
@github-actions github-actions bot added this to the 407 milestone Feb 10, 2023
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