dotnet / dotnet/arcade-services

Race condition during blob publishing

Open
#2,539 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
86
Forks
86
Avg merge
1d 8h
Merged PRs (30d)
35

Description

There is the possibility for a race condition during blob publishing when a build that activates two different channels that target the same _blob storage._ The race condition itself isn't the problem. The thing is that we want to make sure that whenever we attempt to re-publish an asset the published content and the newly one are the same.

Discussed this with @mmitche and @riarenas and possible fix is like so:

- Assume the blob storage doesn't accept overrides.
- Try publishing a blob.
--- If publishing happens everything is fine as there was no previous blob there by assumption.
--- If the blob publishing fail:
-----> Check whether the published blob and the local blob has different contents. If they do show an error otherwise everything is fine.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.