Skip to content

feat(services/azfile): return write metadata#7381

Merged
Xuanwo merged 1 commit intoapache:mainfrom
spereyra-dev:codex/azfile-write-returns-metadata
Apr 14, 2026
Merged

feat(services/azfile): return write metadata#7381
Xuanwo merged 1 commit intoapache:mainfrom
spereyra-dev:codex/azfile-write-returns-metadata

Conversation

@spereyra-dev
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #5693.

Rationale for this change

Azfile writes returned empty metadata. This prevented callers from receiving metadata such as content length, ETag, and last modified time after a successful write.

What changes are included in this PR?

  • Parse ETag and Last-Modified from azfile write responses.
  • Set content length for one shot writes and append writes.
  • Reuse the buffered size for create and update calls.

Are there any user-facing changes?

Yes. Azfile write calls now return populated metadata when the service includes it in the response.

AI Usage Statement

This PR was prepared with OpenAI Codex.

@spereyra-dev spereyra-dev force-pushed the codex/azfile-write-returns-metadata branch from ba84f91 to e558206 Compare April 12, 2026 05:46
@spereyra-dev spereyra-dev marked this pull request as ready for review April 12, 2026 06:03
@spereyra-dev spereyra-dev requested a review from Xuanwo as a code owner April 12, 2026 06:03
@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. releases-note/feat The PR implements a new feature or has a title that begins with "feat" labels Apr 12, 2026
Copy link
Copy Markdown
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Apr 14, 2026
@Xuanwo Xuanwo merged commit 2dcaf91 into apache:main Apr 14, 2026
106 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer releases-note/feat The PR implements a new feature or has a title that begins with "feat" size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Write Returns Metadata for all services

2 participants