-
Notifications
You must be signed in to change notification settings - Fork 10
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
Replace current_master for current_primary #78
base: main
Are you sure you want to change the base?
Conversation
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.
This was done because Redis uses a "master-replica" naming scheme.
I would probably avoid changing it on a couple of places related to the lib, and then having the same concept still called "master" all over the charm. In any case, as Tom pointed out, primary
is the more common name.
I changed only the part related to the library because I was afraid of causing a big impact/too much to review. |
@zmraul I changed everything now |
@amandahla, a huge thank you for the contribution! Really Could you please make sure that the charm actually works after the changes? |
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.
Thanks for the changes!
I'm not a 100% sure that I caught them all, but please do not change commands or outputs from commands sent/received from Redis or Sentinel.
Hi, unfortunately I believe the tests are failing for something not related to this PR: |
|
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.
Thanks!
I'll take a look failures when I have a moment, as they seem unrelated to the charm itself.
@@ -132,7 +132,7 @@ def __init__(self, charm, port): | |||
|
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.
LIBPATCH
on the lib will need updating to 6
Hi @amandahla. Recent changes should fix the CI/tests. Please rebase on main and give it another try! For the conflicting file, |
Issue
Charms using the Redis library that check for inclusive naming fail because of the word "master".
Solution
Replace current_master for current_primary