Page MenuHomePhabricator

Provide a simple read-only maintenance mode for repositories
ClosedPublic

Authored by epriestley on Aug 29 2019, 8:05 PM.
Tags
None
Referenced Files
F15387133: D20748.id.diff
Sat, Mar 15, 1:53 AM
F15386152: D20748.diff
Sat, Mar 15, 12:07 AM
Unknown Object (File)
Mon, Mar 3, 9:38 AM
Unknown Object (File)
Thu, Feb 20, 4:52 AM
Unknown Object (File)
Feb 16 2025, 10:06 PM
Unknown Object (File)
Feb 9 2025, 8:02 AM
Unknown Object (File)
Feb 9 2025, 8:02 AM
Unknown Object (File)
Feb 9 2025, 8:02 AM
Subscribers
None

Details

Summary

Ref T13393. While doing a shard migration in the Phacility cluster, we'd like to stop writes to the migrating repository. It's safe to continue serving reads.

Add a simple maintenance mode for making repositories completely read-only during maintenance.

Test Plan

Put a repository into read-only mode, tried to write via HTTP + SSH. Viewed web UI. Took it back out of maintenance mode.

Diff Detail

Repository
rP Phabricator
Branch
readonly1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 23328
Build 32052: Run Core Tests
Build 32051: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Aug 29 2019, 10:23 PM
This revision was automatically updated to reflect the committed changes.