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
Weed mount not showing changes happening on another node #2038
Comments
I can not reproduce this. |
Is there any more info I can give you that might be useful? Perhaps this is a kernel issue caching files too heavily? I noticed there were some other issues referencing similar things. |
You can use https://github.com/chrislusf/seaweedfs/blob/master/docker/Makefile#L24 as an example to create reproducible docker setup. |
This didn't work in Setting it up and then doing
Added vim to both containers and then created a test.txt file on mount_1 and editted it on mount_2: I had to make a minor change to get it to run on my Mac though: diff --git a/docker/compose/local-mount-compose.yml b/docker/compose/local-mount-compose.yml
index b1c579cd..8c432905 100644
--- a/docker/compose/local-mount-compose.yml
+++ b/docker/compose/local-mount-compose.yml
@@ -38,7 +38,7 @@ services:
mount_2:
image: chrislusf/seaweedfs:local
privileged: true
- entrypoint: '/bin/sh -c "mkdir -p t2 && mkdir -p cache/t2 && weed -v=4 mount -filer=filer:8888 -cacheDir=./cache/t2 -dir=./t2 -filer.path=/c1 -volumeServerAcess=publicUrl"'
+ entrypoint: '/bin/sh -c "mkdir -p t2 && mkdir -p cache/t2 && weed -v=4 mount -filer=filer:8888 -cacheDir=./cache/t2 -dir=./t2 -filer.path=/c1"'
depends_on:
- master
- volume |
Added a fix. Please help to verify the fix. |
I think I was able to fix this by downgrading to 9672f9e but I need to test further. Happy to test any other fixes you put up though. |
This still didn't work for me on Docker. I ran make clean on in the repo root directory as well as in the docker folder. I also deleted all containers, and images. I'll test with one of the binaries that are built on dev now. |
Okay perhaps the Docker image is caching something? This works properly with https://github.com/chrislusf/seaweedfs/releases/download/dev/weed-2021-05-01-05-52-linux-amd64.tar.gz running on actual hardware. Thanks for the quick fix! |
Describe the bug
I am trying to use seaweedfs as a distributed filesystem. Essentially the seaweedfs mounted folder should more or less be the same on all hosts. Change a file on one server, the changes should be visible on the other server in a a few seconds.
In my testing setup it seems like file creation and deletion sync properly but changes to a file don't. The master server sees changes but the other mounts don't see the changes.
System Setup
Create the master, filer, and volume server as specified in wiki: https://github.com/chrislusf/seaweedfs/wiki/Directories-and-Files
Create a mount in server1:
Create a mount in server2:
Create a file on server1:
Edit file on server2:
See differences in files on both servers:
server2:
server1:
But if I dig around in the actual master server the changes do appear to be there.
weed version
filer.toml
Expected behavior
The files should be synced eventually. Even if I wait a few minutes, the files never seem to sync up. The only thing that syncs them is unmount and then remounting. Or deleting and creating a new file.
It seems like seaweedfs should support this, but let me know if I misunderstood something.
The text was updated successfully, but these errors were encountered: