Skip to content

[Storage] Simplify Encoder seek, fix SM streaming retry#46564

Merged
jalauzon-msft merged 4 commits intoAzure:feature/storage/content-validation-102from
jalauzon-msft:cv-streaming-retry
Apr 28, 2026
Merged

[Storage] Simplify Encoder seek, fix SM streaming retry#46564
jalauzon-msft merged 4 commits intoAzure:feature/storage/content-validation-102from
jalauzon-msft:cv-streaming-retry

Conversation

@jalauzon-msft
Copy link
Copy Markdown
Member

This change simplifies the StructuredMessageEncodeStream.seek method to only support seeking to position zero with SEEK_SET. This also simplified read a bit as we no longer need to track the checksum offset, checksums will just be re-computed. This was done because this stream is not exposed to users and seek is only used internally for retry where it will always use SEEK_SET to 0. The previous logic, while correct, while quite complex and difficult to maintain.

Additionally, this adds a test for and fixes an issue with crc64 streaming retry in async by making the close method a no-op. The close method is automatically called by aiohttp so retries would break.

@github-actions github-actions Bot added the Storage Storage Service (Queues, Blobs, Files) label Apr 27, 2026
@jalauzon-msft jalauzon-msft merged commit 6ae8592 into Azure:feature/storage/content-validation-102 Apr 28, 2026
26 checks passed
@jalauzon-msft jalauzon-msft deleted the cv-streaming-retry branch April 28, 2026 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Storage Storage Service (Queues, Blobs, Files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants