Closed saikonen closed 2 hours ago
Hi, thanks for your feedback. This is the result of a system that automatically sets the "generation" on the Blob object after a successful operation that returns a generation from the server. The reason for the system is to protect against race conditions involving Blobs being updated in the middle of serial operations. It does cause inconveniences in these cases but because race conditions would otherwise be very common, we consider it to be a necessary feature.
In order to avoid it, use methods with the blob name instead of the Blob object itself, or create new Blob objects.
Possible bug with the blob client when trying to reuse a client instance to tail blob content.
Environment details
macOS 13.6.9
3.9.16
24.2
google-cloud-storage
version:2.18.2
Steps to reproduce
download_as_bytes
download_as_bytes
again. Observe that no new bytes are received.Code example