-
Notifications
You must be signed in to change notification settings - Fork 40.6k
fix race condition issue for smb mount on windows #75371
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
Conversation
change var name
ae9dec8
to
4b4b6cd
Compare
/test pull-kubernetes-cross |
@andyzhangx is this something we need for 1.14? can you talk a little bit about how a user could hit this issue (under what conditions)? |
hi @michmike I could easily repro this issue by "kubectl create -f https://raw.githubusercontent.com/andyzhangx/demo/master/windows/azurefile/aspnet-azurefile-multiple-replicas.yaml", the error is like following:
And I have verified this PR has fixed this issue. It's better make it into v1.14 if possible. |
/test pull-kubernetes-cross |
i pinged sig-storage |
I can't say anything about Windows, but the code looks OK. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyzhangx, jsafrane 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 |
/milestone v1.14 |
I have a few questions
|
I introduced a fix for remount same smb path issue on windows: #73661, that fix introduces this issue, it's not a regression btw since original remount on same smb path does not work.
I used 6 replicas in my example, though those pod has different mount dirs, while they point to same smb path, that will cause race condition.
If you use same smb path with multiple pods in parallel, I think it could reproduce easily. @jingxu97 Let me explain a little more here. On Linux, every smb mount is independent even mount with same smb path, so there won't be race condition, while on Windows, we are using |
@andyzhangx Is this PR still planned to be merged in time for 1.14? I'd like to remind that Code Thaw is starting tomorrow (Tuesday PST EOD), so it would be nice to merge this PR by then, otherwise it'll compete with herd of incoming PRs post-thaw. |
@neolit123 can you please take a look as well? |
/lgtm |
/lgtm |
/hold cancel |
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
thank you all for a quick review and approval! |
/lgtm |
…5371-upstream-release-1.12 Automated cherry pick of #75371: fix race condition issue for smb mount on windows
…5371-upstream-release-1.13 Automated cherry pick of #75371: fix race condition issue for smb mount on windows
What type of PR is this?
/kind bug
What this PR does / why we need it:
This PR brings the lock when do smb mounting on the node with same target source, otherwise there would be race condition as user already hits.
Which issue(s) this PR fixes:
Fixes #75180
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
/kind bug
/assign @jingxu97 @msau42 @PatrickLang @michmike @craiglpeters
/priority critical-urgent
/sig windows
/test pull-kubernetes-cross