-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve context cancellation handling in PostingsForMatchersCache (#644)
* Improve context cancellation handling in PostingsForMatchersCache Signed-off-by: Marco Pracucci <marco@pracucci.com> * Added more comments Signed-off-by: Marco Pracucci <marco@pracucci.com> * Move done by an hat in postingsForMatcherPromise Signed-off-by: Marco Pracucci <marco@pracucci.com> * Update comment Signed-off-by: Marco Pracucci <marco@pracucci.com> * Added TestContextsTracker_Concurrency Signed-off-by: Marco Pracucci <marco@pracucci.com> * Improved TestPostingsForMatchersCache Signed-off-by: Marco Pracucci <marco@pracucci.com> * Removed addressed TODO comment Signed-off-by: Marco Pracucci <marco@pracucci.com> * Fix flaky test Signed-off-by: Marco Pracucci <marco@pracucci.com> * Gracefully handle the race condition Signed-off-by: Marco Pracucci <marco@pracucci.com> * Remove time.Sleep() from TestPostingsForMatchersCache Signed-off-by: Marco Pracucci <marco@pracucci.com> --------- Signed-off-by: Marco Pracucci <marco@pracucci.com>
- Loading branch information
Showing
2 changed files
with
731 additions
and
29 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
Oops, something went wrong.