-
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
etcdserver: remove infinite loop for auth in raftRequest #10468
Conversation
Remove auth validation loop in v3_server.raftRequest(). Re-validation when error ErrAuthOldRevision occurs should be handled on client side.
Do we still need to distinguish between raftRequest() and raftRequestOnce()? |
/cc @xiang90 |
Just saw there is a failed test TestV3AuthOldRevConcurrent, I will take a look. |
Codecov Report
@@ Coverage Diff @@
## master #10468 +/- ##
==========================================
+ Coverage 64.18% 64.53% +0.34%
==========================================
Files 403 403
Lines 37956 37953 -3
==========================================
+ Hits 24362 24492 +130
+ Misses 11963 11809 -154
- Partials 1631 1652 +21
Continue to review full report at Codecov.
|
@jingyih thanks for handling this! I took a look about the failed test. The failed reason after removing the loop is that simple token always uses the latest revision (see |
Thanks @mitake for the explanation. I am worried that we might forget to re-enable the test if we disable it now. Maybe we can keep this PR open until the client side retry get implemented. |
Disable TestV3AuthOldRevConcurrent for now. See etcd-io#10468 (comment)
Disable integration test |
Disable TestV3AuthOldRevConcurrent for now. See etcd-io#10468 (comment)
9226477
to
41539df
Compare
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!
Disable TestV3AuthOldRevConcurrent for now. See etcd-io#10468 (comment)
…8-upstream-release-3.4 Automated cherry pick of #10468 on release-3.4
Disable TestV3AuthOldRevConcurrent for now. See etcd-io#10468 (comment)
Disable TestV3AuthOldRevConcurrent for now. See etcd-io#10468 (comment)
Disable TestV3AuthOldRevConcurrent for now. See etcd-io#10468 (comment)
Remove auth validation loop in v3_server.raftRequest(). Re-validation when error ErrAuthOldRevision occurs should be handled on client side.
This is a follow up to #10218. The client side implementation is tracked in #10408.