Skip to content
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

Filer 文件和文件夹 同名的问题 #777

Closed
330570902 opened this Issue Nov 29, 2018 · 4 comments

Comments

Projects
None yet
3 participants
@330570902
Copy link

commented Nov 29, 2018

作者您好:
我使用的weaweedfs 版本为 0.94 . Filer 服务使用Cassandra 存储元数据。我在存储文件时发现,与文件名相同的文件夹会被覆盖,反之亦然。请问这是一个BUG 还是在使用Cassandra作为元数据存储时的 feature?

@chrisluuber

This comment has been minimized.

Copy link
Contributor

commented Nov 29, 2018

It is designed this way, for all filer stores.

@330570902

This comment has been minimized.

Copy link
Author

commented Nov 29, 2018

OK thank you.

@330570902 330570902 closed this Nov 29, 2018

chrislusf added a commit that referenced this issue Nov 29, 2018

@chrisluuber

This comment has been minimized.

Copy link
Contributor

commented Nov 29, 2018

Added a fix for this, to report as error if a directory and a file conflict.

chrislusf added a commit that referenced this issue Nov 29, 2018

@ijunaid8989

This comment has been minimized.

Copy link

commented Dec 4, 2018

there could be a possibility that due to this change ceca078 , seaweedfs is not saving at same file name?

we have almost 644 such paths http://IP:8888/testv-cxnfz/snapshots/thumbnail.jpg

where post request is coming back with 201. each time.

%HTTPoison.Response{
  body: "{\"size\":121926,\"fid\":\"1278,0fe5e1eb9e303ec5\",\"url\":\"http://ip:8080/1278,0fe5e1eb9e303ec5\"}",
  headers: [
    {"Content-Type", "application/json"},
    {"Etag", "\"e4c15e1d\""},
    {"Date", "Mon, 03 Dec 2018 12:33:03 GMT"},
    {"Content-Length", "101"}
  ],
  request_url: "http://ip:8888/evercam-office/snapshots/thumbnail.jpg",
  status_code: 201
}

image
But as you can see this file is only 0B. and it doesn't even open. but sometimes, It gets open for another thumbnail and it shows not the updated one but the very first ever thumbnail was saved on the server, on 1 November when we first moved to version 0.99, right we are on the latest version 1.10.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.