You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Data corruption in Azure storage driver when using Writer() interface #4571
This is a followup for the azure-sdk-go bug report here. The TLDR is:
When uploading data using the Azure SDK's NewAppendBlobClient.AppendBlock API, data corruption occurs if timeout occurs. Specifically, when a chunk upload fails with "500 Operation timeout", the Azure driver code does not take into account that operation might have succded as per Azure API docs, and just retries the upload resulting in duplicate blocks.
Reproduce
This issue usually occurs when throttling is in effect due to excessive number of requests.
Expected behavior
The code in this situation should:
Use AppendPositionAccessConditions in AppendBlockOptions
If you get a 412 (precondition not met) error, it means the previous attempt succeeded
If not - download the range of the last append to verify if the block contains the expected data
Continue with the next block if verification succeeds, otherwise retry the current block
Unfortunately, my current workload is quite heavy and I won't be able to port these changes myself in the near term.
The fix in our fork is relatively straightforward and the codebases are pretty similar. The main difficulty are going to be small idiosyncrasies between your codebase and our fork. I'll be happy to follow the issue and provide guidance/feedback to whoever picks up the implementation. Please feel free to tag me if you have any questions about our approach.
Activity
vespian commentedon Feb 13, 2025
CC: @deleteriousEffect
milosgajdos commentedon Feb 13, 2025
Can you open a PR @vespian ?
vespian commentedon Feb 13, 2025
Unfortunately, my current workload is quite heavy and I won't be able to port these changes myself in the near term.
The fix in our fork is relatively straightforward and the codebases are pretty similar. The main difficulty are going to be small idiosyncrasies between your codebase and our fork. I'll be happy to follow the issue and provide guidance/feedback to whoever picks up the implementation. Please feel free to tag me if you have any questions about our approach.
milosgajdos commentedon Feb 13, 2025
That's the same for all of us unfortunately...none of us gets paid for this 🙃
maybe @kirat-singh can pick this up since he was the person who updated the Azure parts recently
milosgajdos commentedon Mar 27, 2025
Closing #4576