forked from apache/kudu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KUDU-2187. Don't hold threadpool lock while creating threads
This changes the threadpool implementation so that if a task submission needs to start a thread, it does so after releasing the lock. This enables other worker threads to continue to process items even if thread creation is slow. This is meant to address various cases where I've seen stalled writes with high 'mutex_wait_us' metrics. Looking at the logs it is sometimes the case that this correlates with a single slow pthread creation. Change-Id: If91cb032db25ed539ec8a952f302cf4501b3c240 Reviewed-on: http://gerrit.cloudera.org:8080/8256 Reviewed-by: Adar Dembo <[email protected]> Tested-by: Kudu Jenkins
- Loading branch information
1 parent
57b8b8f
commit f5e1203
Showing
4 changed files
with
164 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.