Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lets consider an example from #3637: "user.${USER}": { "maxConcurrent": 2, "maxQueued": 2 }, "dashboard.${USER}": { "maxConcurrent": 1, "maxQueued": 1 }, When two queries are scheduled at the same time, both of them get permit and most likely both of them will try to get enqueued. This situation lead to an error that one of them was not able to enqueue - "Entering secondary queue failed". In order to solve that, I removed the check of the of size of queued queries. It is not needed as it is already covered by checking the permits in reserve method. Once query got permit it is assumed that it can be enqueued. As a side effect query queue can for the moment hold more queries in state QUEUED than it is set in configuration. Task: #3637 Test Plan: Running unit tests
- Loading branch information
Showing
4 changed files
with
60 additions
and
18 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