-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
auth: ensure RoleGrantPermission is compatible with older versions #11710
Conversation
e68e736
to
bbe4750
Compare
Codecov Report
@@ Coverage Diff @@
## master #11710 +/- ##
==========================================
+ Coverage 66.02% 66.43% +0.40%
==========================================
Files 403 403
Lines 36731 36727 -4
==========================================
+ Hits 24252 24399 +147
+ Misses 10976 10833 -143
+ Partials 1503 1495 -8
Continue to review full report at Codecov.
|
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! Defer to @jingyih
We should have a process for listing up every update which introduces changes of the etcd state machine in the documents. Also we should have a guide for operators for handling such changes (e.g. take snapshot then restore it to a new cluster might be helpful). It's a challenging problem for a system based on replicated state machine... |
If we revert the change, do we still need the test |
Totally agree we need a formal guidance on rolling out behavior changes (including bug fixes) in state machine apply. |
it can increase test coverage, so i keep it. |
IIUC, the old test verifies that the duplicate |
bbe4750
to
d70600f
Compare
ok, i have cleaned up 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.
LGTM. Thanks!
we learn lessons from issue #11689, if a feature that may update auth-revision or revision is not compatible with older versions, it is possible to cause data inconsistency. so we have to ensure RoleGrantPermission is compatible with older versions, just revert it to old versions.
@mitake @jingyih