Skip to content

Exclusive lock on data_dir at startup #142

Closed

Description

@jsam

Nothing stops two servers from opening the same data_dir (for example a k8s RollingUpdate on an RWO PVC), which corrupts the WAL and shards. Take an flock on data_dir/LOCK at startup and refuse to start if it is held.

Activity

  1. added
    backendBackend/server related
    P0Immediate correctness, data-safety or live-credential blocker
    on Oct 3, 2026
  2. added a commit that references this issue on Oct 3, 2026
    7f1b30f
  3. added 2 commits that reference this issue on Oct 3, 2026
    4578fe6
    3554c98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0Immediate correctness, data-safety or live-credential blockerbackendBackend/server related

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions