[Feature/extensions] Renaming tests to be consistent with main branch, changing latches, and removing NamedWriteableRegistry from extensions#5571
Conversation
Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Ryan Bogan <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
|
The test that is failing is also broken on main - I will rebase once the fix is pushed there. |
|
Last few gradle check failures happening due to version bump after 2.4.1 release, #5560. Fixed is merged into main branch. @ryanbogan : Can you please rebase your branch against latest |
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## feature/extensions opensearch-project/OpenSearch#5571 +/- ##
========================================================
+ Coverage 70.92% 70.97% +0.05%
- Complexity 58504 58547 +43
========================================================
Files 4767 4762 -5
Lines 279189 279038 -151
Branches 40316 40301 -15
========================================================
+ Hits 198001 198034 +33
+ Misses 65058 64874 -184
Partials 16130 16130
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
| ); | ||
| try { | ||
| inProgressLatch.await(ExtensionsManager.EXTENSION_REQUEST_WAIT_TIMEOUT, TimeUnit.SECONDS); | ||
| inProgressFuture.get(ExtensionsManager.EXTENSION_REQUEST_WAIT_TIMEOUT, TimeUnit.SECONDS); |
There was a problem hiding this comment.
The .get() call blocks so this gives you no improvement on the synchronous nature of the countdown latch.
Recommend you use an .orTimeout() to implement the timeout functionality. That will also change the handling of timeout below from an InterruptedException to an isCompletedExceptionally() test. (Probably include an isCancelled() as well.). Or you could call .join() next which would throw a CompletionException to keep the same logic.
There was a problem hiding this comment.
@dbwiddis I wanted this to still be synchronous for now. I think we should either raise a PR on feature/extensions that changes all the latches and .get() calls now or we should wait and do a similar PR once everything is merged to main. Either way, I think this approach is better than changing them one by one as we merge everything to main. Thoughts?
There was a problem hiding this comment.
Fair, raise an issue, add a TODO comment and we can merge this.
There was a problem hiding this comment.
Signed-off-by: Ryan Bogan <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Ryan Bogan <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Ryan Bogan [email protected]
Description
Renaming tests to be consistent with main branch
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.