Homec4science

Add a lock to storage upgrade and adjustment

Authored by Joshua Spence <josh@freelancer.com> on Nov 30 2015, 21:58.

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

Committed
Joshua Spence <josh@freelancer.com>Dec 1 2015, 20:18
Pushed
aubortJan 31 2017, 17:16
Parents
rPHbbd1da4f8d78: Remove addExtraQuicksandConfig
Branches
Unknown
Tags
Unknown

Event Timeline

Joshua Spence <josh@freelancer.com> committed rPH71646062852b: Add a lock to storage upgrade and adjustment (authored by Joshua Spence <josh@freelancer.com>).Dec 1 2015, 20:18