Add cluster.initial_cluster_manager_nodes to testClusters OVERRIDABLE_SETTINGS#20348
Conversation
…_SETTINGS Signed-off-by: Sotaro Hikita <bering1814@gmail.com>
📝 WalkthroughWalkthroughThis change adds two OpenSearch cluster settings ( Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Signed-off-by: Sotaro Hikita <bering1814@gmail.com>
|
❌ Gradle check result for 77dd747: 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✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20348 +/- ##
============================================
- Coverage 73.27% 73.22% -0.05%
+ Complexity 71739 71703 -36
============================================
Files 5785 5785
Lines 328143 328143
Branches 47270 47270
============================================
- Hits 240445 240289 -156
- Misses 68397 68511 +114
- Partials 19301 19343 +42 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…_SETTINGS (opensearch-project#20348) * Add cluster.initial_cluster_manager_nodes to testClusters OVERRIDABLE_SETTINGS Signed-off-by: Sotaro Hikita <bering1814@gmail.com> * update CHANGELOG.md Signed-off-by: Sotaro Hikita <bering1814@gmail.com> --------- Signed-off-by: Sotaro Hikita <bering1814@gmail.com>
…_SETTINGS (opensearch-project#20348) * Add cluster.initial_cluster_manager_nodes to testClusters OVERRIDABLE_SETTINGS Signed-off-by: Sotaro Hikita <bering1814@gmail.com> * update CHANGELOG.md Signed-off-by: Sotaro Hikita <bering1814@gmail.com> --------- Signed-off-by: Sotaro Hikita <bering1814@gmail.com>
Description
Add
cluster.initial_cluster_manager_nodesandcluster.initial_master_nodestoOVERRIDABLE_SETTINGSin the testClusters Gradle plugin.This enables creating multi-node test clusters with search-only nodes. Currently, testClusters sets
cluster.initial_cluster_manager_nodesto include all node names regardless of theirnode.rolessetting, and this cannot be overridden. Since thesearchrole cannot be combined withcluster_manager, clusters with search-only nodes fail to form.With this change, users can override the setting to include only cluster_manager-eligible nodes:
Related Issues
Resolves #20347
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.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.