-
Hi, For our use case, we may sometimes upload a file more than once. (The previous version is still live.) This is not the usual behaviour, but it's okay when it happens. This works for small files but for large files that use parallel upload and compose, uploading again fails with a "Precondition Failed" error:
That seems to be caused by this IfGenerationMatch(0) header in the last operation in ComposeMany(...). With that removed, uploading large files again works as expected. If overwriting the older file is okay in these cases, are there any issues in removing that IfGenerationMatch(0) and letting compose do that? Is there a particular reason that check is enforced for the compose operation? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
That looks like a bug to me. The final compose is the one that should not be using Previous compose operations may want to use In any case, thanks for pointing this out, I will open a bug from this question. |
Beta Was this translation helpful? Give feedback.
That looks like a bug to me. The final compose is the one that should not be using
IfGenerationMatch(0)
, as this is creating the object defined by the application.Previous compose operations may want to use
IfGenerationMatch(0)
because that prevents erasing customer data if there is a clash with the temporary object names. I say "may" because we also need to deal with upload operations that fail and are restarted, using the same temporary objects.In any case, thanks for pointing this out, I will open a bug from this question.