Skip to content
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

Fixing deadlock in subnet resources #3405

Closed
wants to merge 3 commits into from

Conversation

Moeser
Copy link
Contributor

@Moeser Moeser commented May 9, 2019

The assumption I'm making here is that the purpose of all these locks is to prevent the same resource being modified by multiple threads at the same time. None of these resources actually modify the route table, network security group, or vnet itself, so removing locks on those should be safe. I replaced the vnet locks with subnet locks which is modified by the route table association and nsg association.

If I'm wrong about why we have all these locks in here, please let me know. This is to fix #2489 and I've confirmed that it works on my local config that was previously triggering this problem.

@ghost ghost added the size/M label May 9, 2019
@Moeser
Copy link
Contributor Author

Moeser commented May 16, 2019

@tombuildsstuff any comments or feedback here?

@Moeser
Copy link
Contributor Author

Moeser commented May 28, 2019

@tombuildsstuff I made a haiku for you in case it helps get some feedback:

Fixing locking bug
Many locks, so little time
Please see pull request

@Moeser
Copy link
Contributor Author

Moeser commented Jun 10, 2019

@tombuildsstuff I'm more than happy to go back and change this if it needs more work, just need some info on what the concern is, if there is one. Can we start a dialog here?

@ghost
Copy link

ghost commented Jul 15, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Jul 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can create 3 subnets with NSG and Route Table associations, but no more
2 participants