mount: fix consistency issue, invalidate mount meta cache more aggressively #2289
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I upgraded weed mount from 2.49 and it seems there's a consistency problem. Picture's worth a thousand words: this is
weed server
with 2 mounts on 2 servers. I ran these commands roughly alternating between these two servers. You can see that thehi
file seems to be getting clobbered, as if the file length metadata wasn't updating:With my change it now alternates as expected:
I'm not totally sure why this works, just looked through the commits and this one looked suspicious: nivekuil@e6ba2f9