Open haraldschilly opened 4 years ago
I wonder - is this a side effect of maybe having reset or wiped something on the test server?
That said, maybe the right fix is to implement fallback behavior if the blob is really missing (and it's not just an ephemeral issue with gcsfuse!). It would be reasonable to discard the history of the file rather than make it impossible to open.
I'm not aware of ever having hit this problem in production.
WORKAROUND: rename the file, then open the renamed file.
Log from this happening again:
syncstrings -- failed to connect -- blob is gone; will retry
2021-02-04T10:38:14.184Z - debug: primus-api request object {"cmd":"synctable_channel","query":{"syncstrings":[{"string_id":"f9eaed66b1f2eba7f8fccfc871444d2
8a7c2ffba","project_id":"35542cec-cd3d-4fbc-bb48-4d2373dd5eab","path":".Deutschland.ipynb.sage-jupyter2","users":null,"last_snapshot":null,"snapshot_interva
l":null,"save":null,"last_active":null,"init":null,"read_only":null,"last_file_change":null,"doctype":null,"archived":null,"settings":null}]},"options":[{"p
ersistent":true}]}
syncstrings -- failed to connect -- blob is gone; will retry
syncstrings -- failed to connect -- blob is gone; will retry
syncstrings -- failed to connect -- blob is gone; will retry
2021-02-04T10:38:25.878Z - debug: primus-api request object {"cmd":"synctable_channel","query":{"syncstrings":[{"string_id":"f9eaed66b1f2eba7f8fccfc871444d2
8a7c2ffba","project_id":"35542cec-cd3d-4fbc-bb48-4d2373dd5eab","path":".Deutschland.ipynb.sage-jupyter2","users":null,"last_snapshot":null,"snapshot_interva
l":null,"save":null,"last_active":null,"init":null,"read_only":null,"last_file_change":null,"doctype":null,"archived":null,"settings":null}]},"options":[{"p
ersistent":true}]}
syncstrings -- failed to connect -- blob is gone; will retry
Obviously, the fix is to make it so opening files is robust against blobs being gone for some reason. The blobs are essentially only needed for longterm backups.
But still, it would be nice to change our code to allow opening a file if the blob were gone, e.g., in an emergency this would be nice...
while testing in namespace "test", I was unable to open a markdown file. inspecting the project log, it says:
the file is in the files listing, 3 month old, 0 bytes.
I don't know how severe this is, I just want to make an issue. Other files open fine.