fix: make plugin sync safe for concurrent replica starts #12
Reference in New Issue
Block a user
Delete Branch "benvin/fix-plugin-sync-race"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Replicas share /config over RWX CephFS. The plugin sync unconditionally rm -rf'd then cp -a'd each plugin dir on every start, so two replicas starting together raced: one hit a permission error deleting a dir the other was writing, or crashed later with UnauthorizedAccessException loading a half-copied plugin. Reproduced 3/3 with two simultaneous starts.