-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scheduler: delays closing of deleted lifo queues (#1953)
Closing of a lifo queue on route deletion while in-flight requests try to get a slot from it results in `Unknown error for route based LIFO: queue closed for host` error and 500 response to the client. To mitigate the problem this change puts deleted queues aside and closes them after one minute. The proper fix would be to close queue when all route's in-flight requests complete, see #202. Updates #1851 Signed-off-by: Alexander Yastrebov <[email protected]>
- Loading branch information
1 parent
1a1d1eb
commit 196a5a5
Showing
3 changed files
with
138 additions
and
77 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package scheduler | ||
|
||
var ( | ||
ExportQueueCloseDelay = &queueCloseDelay | ||
) |
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