Azure / Azure/azure-sdk-for-java

[FEATURE REQ] Get ETag after closing BlobOutputStream

Open
#42,605 2 comments 0 reactions 1 assignee Assigned to @ibrandes View on GitHub
Client customer-reported feature-request needs-team-attention Storage
Dominant language
Java
Stars
2.6k
Forks
2.2k
Avg merge
2d 8h
Merged PRs (30d)
178

Description

**Is your feature request related to a problem? Please describe.**
When creating a Blob from getBlobOutputStream, I would like to get the ETag so that future conditional get blob requests work

**Describe the solution you'd like**
Add a single method to BlobOutputStream called getETag. This will fail before close is called and return a String ETag afterwards.

**Describe alternatives you've considered**
Client could call getProperties with the blob name. However, this is is racy.

**Additional context**
None

**Information Checklist**
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
- [x] Description Added
- [x] Expected solution specified

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.