forked from grpc/grpc
-
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.
[EventEngine] Respect requested thread pool size (grpc#34904)
The current fixed minimum starting thread count (2 threads), combined with the fixed thread spawn rate limit of 1/sec, was causing test issues with some new EventEngine integrations. For example, this test had a race wherein the alarm destructor was expected to run within 1 second. In 5% of runs, the 2 EventEngine threads were otherwise occupied, and it would take around 1 second to spawn a new thread. https://github.com/grpc/grpc/blob/1e15d00ec4d6eba6bd20621fc72ad51d0f62b654/test/cpp/common/alarm_test.cc#L418-L435
- Loading branch information
Showing
4 changed files
with
5 additions
and
10 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
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