Add CompletionStage variants to ClusterAdminClient as an alternative to ActionListener#20509
Add CompletionStage variants to ClusterAdminClient as an alternative to ActionListener#20509cwperks wants to merge 4 commits intoopensearch-project:mainfrom
Conversation
…to ActionListener Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
|
No actionable comments were generated in the recent review. 🎉 📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds CompletionStage-returning async helper methods to ClusterAdminClient that wrap existing ActionListener-based calls using CompletableFuture, updates a test to use the new stateAsync API, and adds an Unreleased changelog entry documenting the additions. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Comment |
|
❌ Gradle check result for 07e455c: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #20509 +/- ##
============================================
- Coverage 73.33% 73.27% -0.06%
- Complexity 72125 72144 +19
============================================
Files 5798 5799 +1
Lines 329654 329858 +204
Branches 47491 47518 +27
============================================
- Hits 241741 241715 -26
- Misses 68504 68778 +274
+ Partials 19409 19365 -44 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
This PR is stalled because it has been open for 30 days with no activity. |
Description
Similar to #19161 and #18998 this PR applies the same concept to ClusterAdminClient.
One of my eventual goals is to deprecate and remove anything from these interfaces that returns an ActionFuture to discourage any usage of blocking actions. Even though these signatures are primarily used in tests, I don't think they should be part of the interfaces.
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.