-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No good way to use leases with blobs #16
Comments
@schadr, we will take care of this in a later release. Thanks. |
Any expected data for releasing this feature ? Thanks |
Hi there, |
It sounds another vote for this feature. I will prioritize this and have it in next release (expecting August, but not a commitment). |
+1 would also like this feature |
@sbonebrake, |
Thanks, but this won't work for my project because I plan to have many different machines reading from the same container to process data from Event Hub capture. Fortunately I found another workaround: Azure::Storage::Service::StorageService.register_request_callback { |headers| headers["x-ms-lease-id"] = lease_id }
blob_client.delete_blob(container_name, blob.name)
Azure::Storage::Service::StorageService.register_request_callback { |headers| headers } |
We've added the support for per-request lease ID in 0.15.0. Please check it out and any feedback is appreciated. |
Migrate from the Azure SDK: Azure/azure-sdk-for-ruby#189
From @schadr:
I am trying to use leases on blob to ensure that only one host can modify the content.
For that purpose I create a lease on a blob by using the
aquire_lease operation
but there is no way to provide the lease_id for calls such as create_blob_pages, so the only way to use leases is to ensure a blob does not get modified while reading from it.
Or am I missing something?
The text was updated successfully, but these errors were encountered: