Skip to content

Reduce synchronized lock on DirectExchangeClient scheduling#28391

Open
jinyangli34 wants to merge 1 commit intotrinodb:masterfrom
jinyangli34:jinyang-reduce_lock_on_exchange_client
Open

Reduce synchronized lock on DirectExchangeClient scheduling#28391
jinyangli34 wants to merge 1 commit intotrinodb:masterfrom
jinyangli34:jinyang-reduce_lock_on_exchange_client

Conversation

@jinyangli34
Copy link
Copy Markdown
Contributor

Description

Original logic locks entire dequeue + schedule loop.
New logic locks each dequeue individually, allow other threads to grab lock in middle

Additional context and related issues

Often seeing threads blocked on DirectExchangeClient::scheduleRequestIfNecessary

Release notes

(X) 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.
( ) Release notes are required, with the following suggested text:

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

Original logic locks entire pick + schedule loop.
New logic locks each dequeue individually, allow other threads to grab lock in middle
@github-actions
Copy link
Copy Markdown

This pull request has gone a while without any activity. Ask for help on #core-dev on Trino slack.

@github-actions github-actions bot added the stale label Mar 16, 2026
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.

1 participant