-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add error threshold and verify domain name for instance in helix tool #2525
Add error threshold and verify domain name for instance in helix tool #2525
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #2525 +/- ##
=============================================
- Coverage 72.88% 33.47% -39.41%
+ Complexity 11237 4999 -6238
=============================================
Files 792 792
Lines 63701 63714 +13
Branches 7788 7790 +2
=============================================
- Hits 46426 21331 -25095
- Misses 14725 40705 +25980
+ Partials 2550 1678 -872
☔ View full report in Codecov by Sentry. |
ambry-clustermap/src/main/java/com/github/ambry/clustermap/HelixBootstrapUpgradeUtil.java
Show resolved
Hide resolved
new HelixConfigScope(HelixConfigScope.ConfigScopeProperty.PARTICIPANT, Collections.singletonList(clusterName), | ||
null); | ||
// This will list all the participant names | ||
List<String> instanceNames = configAccessor.getKeys(scope); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, when --resources
input is given to this tool, I think I called setInstanceConfig
only for the instances hosting partitions of those resources (line number 894
). But, configAccessor.getKeys(scope)
may get all instances in the cluster. May be we need to set DOMAIN field for all instances in the cluster (irrespective of inputted resources) now ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should probably do that, let me update it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm.
26c957e
to
54343ab
Compare
This PR introduces two changes