-
Notifications
You must be signed in to change notification settings - Fork 565
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed race condition in the OCI Metrics integration test between retr…
…ieval of metrics from registry and asserting that from expected results (#4897) * Fixed race condition in the OCI Metrics integration test between retrieval of metrics from registry and asserting that from expected results. To fix the issue, here are the list 1. Used CountDownLatches to signal when to start testing, for example, test only after results has been retrieved. 2. Make OciMetricsCdiExtension Priority higher than MetricsCdiExtension so that it will only start after MetricsCdiExtension has completed. * Modify testMetricUpdate to explicitly test the 1st and 2nd metric update and fail test if InterruptedException is received in delay() * Additional changes to avoid race condition in testMetricUpdate
- Loading branch information
Showing
3 changed files
with
59 additions
and
85 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