-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
[release-3.5]: use RLock in Demoted method for read-only access to expiry #19445
base: release-3.5
Are you sure you want to change the base?
Conversation
Hi @1911860538. Thanks for your PR. I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
… expiry Signed-off-by: huangzw <[email protected]>
8e0a08d
to
5245f6f
Compare
/ok-to-test |
Please don't backport performance changes, etcd v3.6 is soon to be released. The argument that we need to backport to make it available should no longer be relevant. We should focus on releasing v3.6 and its adoption. |
@ahrtr @serathius Acknowledged, I am going to close this pull request. |
This is not a performance fix but a correction of a misuse of sync.RWMutex, which is why backporting makes sense. That said, it’s not a critical issue, and I feel the concern here is somewhat overstated. While 3.6 is the priority, that doesn’t mean we can’t make small, low-effort fixes along the way. |
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.
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 1911860538, ahrtr, fuweid The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Switching from Lock to RLock, doesn't fix any concurrency issue, just improves performance. |
It's unfortunate that we're spending time debating such a trivial fix. |
This change is valid since RLock is read-only check. is there any concern for this change? |
#19432