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

Add filesystem locking on jetstream fileStore instances. #4407

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Commits on Aug 22, 2023

  1. Add filesystem locking on jetstream fileStore instances.

    Running two instances of the server which share the same directory (e.g.
    default configuration `/tmp/nats/jetstream') will corrupt each other.
    
    We mitigate by creating an empty file called LOCK in the directory and then
    acquire a flock(2) on it.
    
    Signed-off-by: Jason Volk <jason@zemos.net>
    jevolk committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    f2299a0 View commit details
    Browse the repository at this point in the history