-
-
Notifications
You must be signed in to change notification settings - Fork 384
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
Support for "append" mode for Azure Blobs #836
Comments
do you mean creating a new AppendBlob object on azure blob storage, or appending to an existing AppendBlob? |
I mean appending to an existing AppendBlob. |
I guess |
what would happened if it's not an AppendBlob? |
raise a |
some concerns:
|
I think bullet number 2 is a hard blocker. There's no way to revert an append block operation.
The only workaround I can think of is to only start uploading in the |
@ddelange thanks for sharing your thoughts on this. Is this "aborting" capability really required? I mean, I think we need to stick to what the API allows us to do. If we can't revert an append block, so be it. Also, going over the code, I have noticed there is no append mode support for other cloud providers. Is it because they don't support it? Or because similar blockers than this? |
Setting chunksize default to 100MB for the new
I'm not a maintainer (just an active contributer) but afaik it's because they only implement immutable objects. |
Sounds good @ddelange! I'll try to put something together and see if the maintainers like it. |
Awesome :) The 100MB is a hard chunk size limit on azure side btw, would have to ensure that bytes going into the |
correction:
smart_open azure.py links to this table, maybe the low defaults we have now is a remnant from before 2019? |
Hi all!
I use smart-open for one of my projects and I've recently run into the need for "append" mode for Azure blobs. This is something Azure's SDK supports natively but it looks like it hasn't been implemented in smart-open yet.
I was thinking on adding support for this feature myself but I was wondering if there is any additional concern/inconvenience I might be missing.
P.S.: Thanks for such a simple yet useful tool!
Cheers.
The text was updated successfully, but these errors were encountered: