You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After upgrading the seaweedfs version from 0.76 to 3.64, 404 not found will appear when accessing files in TTL volumes, but accessing files without TTL is normal.
System Setup
List the command line to start "weed master", "weed volume". In Additional context.
OS version: Debian 11
output of weed version: 0.76 and 3.64.
Expected behavior
After the upgrade, the files can be accessed normally.
Additional context
The reproduction process is as follows.
The n.AppendAtNs attribute is used when determining whether it has expired. But for Version2, the n.AppendAtNs value is 0, so the file will be judged to be expired.
Describe the bug
After upgrading the seaweedfs version from 0.76 to 3.64, 404 not found will appear when accessing files in TTL volumes, but accessing files without TTL is normal.
System Setup
weed version
:0.76
and3.64
.Expected behavior
After the upgrade, the files can be accessed normally.
Additional context
The reproduction process is as follows.
First run the 0.76 version of SeaweedFS:
Then upload a file and set the TTL:
The file was uploaded successfully and can be accessed normally.
Then end the master and volume processes and upgrade to version 3.64 of SeaweedFS.
Now visit the url just now:
http://localhost:8080/5,0149e3da60
response 404.Possible solutions
The relevant code snippets are as follows:
seaweedfs/weed/storage/volume_read.go
Lines 63 to 77 in 1410c06
The
n.AppendAtNs
attribute is used when determining whether it has expired. But for Version2, then.AppendAtNs
value is 0, so the file will be judged to be expired.You can add the following judgments:
After compilation, replace the executable file again and you can access it normally.
Is this modification reasonable? Thanks.
The text was updated successfully, but these errors were encountered: