-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[S3API] Empty Etag returned when using Azure Storage as remote #3987
Comments
I think I have found something, seems that when there are exactly 1 chunk for a file, the ETag header is empty. Will try and reproduce next week |
[Update] Mount a remote (Azure Storage)
NOTE: this error appears only when the file is 1 chunk in size Steps to reproduce
Output
You'll see on line 39, it says |
the ways to calculate etag are different for SeaweedFS and Azure. Does it matter to you? |
At the moment, I would say I am not bothered that they are calculated differently, but the lack of it is a worring. We are running python packages (s3fs and pyarrow) that rely that the ETag header is present. Id' hope it doesn't really matter what value it is, as long as it's computed in consistent fashion |
I've discovered that when files are fetched from remote and saved to Filer, the files have empty
I've found that the missing ETag is most likely coming from here https://github.com/seaweedfs/seaweedfs/blob/master/weed/server/filer_grpc_server_remote.go#L153 But I am not sure exactly how to set the its value, its probably some kind of md5sum. If someone would be kind enough to point me to the right function here, I'd appreciate it |
Describe the bug
Fetching the etag using the Minio Python SDK of a file in Azure Remote, using the SeaweedFS S3 API, is returning empty result
System Setup
Expected behavior
Fetching the Etag for the file to return the etag as defined in the remote
Steps to reproduce
Save the following as a bash script and run it. Export the variable ACCOUNT_KEY (was provided in private, starts with rwe...) before running the script: export ACCOUNT_KEY=rwe...
Screenshots
Seaweed is aware of the etag in the remote (Azure Storage in this case), which can be seen in the key
remoteEtag
Additional context
Minio Python SDK: https://min.io/docs/minio/linux/developers/python/API.html
The text was updated successfully, but these errors were encountered: