-
Notifications
You must be signed in to change notification settings - Fork 217
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
Bugfix: added support for datacenter and rack names containing underscores #1129
Bugfix: added support for datacenter and rack names containing underscores #1129
Conversation
Signed-off-by: Igor Beliakov <demtis.register@gmail.com>
Thanks for pushing this PR @weisdd ! |
Codecov Report
@@ Coverage Diff @@
## master #1129 +/- ##
==========================================
+ Coverage 73.90% 74.12% +0.22%
==========================================
Files 109 109
Lines 8987 8987
Branches 931 931
==========================================
+ Hits 6642 6662 +20
+ Misses 1817 1794 -23
- Partials 528 531 +3
Continue to review full report at Codecov.
|
@adejanovski Sure, I'll add the change for racks soon. |
Signed-off-by: Igor Beliakov <demtis.register@gmail.com>
@adejanovski I've just pushed the change and updated PR description. Please, approve the workflow execution :) |
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, thanks @weisdd
Issue
cassandra-reaper fails to properly parse datacenter and rack names that contain underscores.
Linked issue: #647
Suggested fix
I tracked it down to be a simple regexp issue - underscores were not included in:
ENDPOINT_DC_21_PATTERN
ENDPOINT_DC_22_PATTERN
ENDPOINT_RACK_21_PATTERN
ENDPOINT_RACK_22_PATTERN
After the change was applied for DC patterns, I can finally see them in UI (the ones that @a-nldisr mentioned: #647 (comment)):
Patterns for racks were adjusted in the same way.
P.S. I'm not a Java-developer by any means (I only code in Go/Python), so can't write unit-tests if it's something that you expect for this bugfix.
Signed-off-by: Igor Beliakov demtis.register@gmail.com