-
Notifications
You must be signed in to change notification settings - Fork 69
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 race condition in LeaserCheckpointer where it can fail with a ContainerAlreadyExists error #253
Fixing race condition in LeaserCheckpointer where it can fail with a ContainerAlreadyExists error #253
Conversation
… the container being created. We can handle it easily if we just allow ContainerAlreadyExists to be considered successful.
7777ba7
to
7c9b9c7
Compare
/azp run Azure.azure-event-hubs-go |
Azure Pipelines successfully started running 2 pipeline(s). |
/azp run Azure.azure-event-hubs-go |
Azure Pipelines successfully started running 2 pipeline(s). |
… list. There's a bit in the API documentation that makes it seem like we coudl get an empty page _with_ a 'next' marker. This could mean we'd have to call _back_ intot he paging API in a loop. Rather than doing that I'll just grab the container info directly and check for 404.
/azp run Azure.azure-event-hubs-go |
Azure Pipelines successfully started running 2 pipeline(s). |
/azp run Azure.azure-event-hubs-go |
Azure Pipelines successfully started running 2 pipeline(s). |
/azp run Azure.azure-event-hubs-go |
Azure Pipelines successfully started running 2 pipeline(s). |
/azp run Azure.azure-event-hubs-go |
Azure Pipelines successfully started running 2 pipeline(s). |
/azp run Azure.azure-event-hubs-go |
Azure Pipelines successfully started running 2 pipeline(s). |
/azp run Azure.azure-event-hubs-go |
Azure Pipelines successfully started running 2 pipeline(s). |
/azp run Azure.azure-event-hubs-go |
Azure Pipelines successfully started running 2 pipeline(s). |
…rlying cancel function in a goroutine but we don't have to.
/azp run Azure.azure-event-hubs-go |
Azure Pipelines successfully started running 2 pipeline(s). |
btw, the live test run with the data race fix is here: I'm not sure why they're not being associated with the PR itself. |
There's a slight race condition between checking the store exists and the container being created.
We can handle it easily if we just allow ContainerAlreadyExists to be considered successful. Also, since the storage tests were failing (unrelated to my change) in race detection I also fixed that as well.
Fixes #252
Fixes #225