HomePhorge

Add a lock to storage upgrade and adjustment

Description

Add a lock to storage upgrade and adjustment

Summary: Fixes T9715. Adds a MySQL-based lock to ensure that schema migrations are not applied on multiple hosts simultaneously.

Test Plan: Ran ./bin/storage upgrade concurrently. One invocation was successful whilst the other hit a PhutilLockException.

Reviewers: #blessed_reviewers, epriestley

Subscribers: Korvin

Maniphest Tasks: T9715

Differential Revision: https://secure.phabricator.com/D14463

Details

Provenance
Joshua SpenceAuthored on Nov 30 2015, 12:58 PM
themackabuPushed on Tue, Mar 25, 8:07 PM
Parents
rPbbd1da4f8d78: Remove addExtraQuicksandConfig
Branches
Unknown
Tags
Unknown

Event Timeline