Page MenuHomePhabricator

When no master database is configured, automatically degrade to read-only mode
ClosedPublic

Authored by epriestley on Apr 10 2016, 12:24 PM.
Tags
None
Referenced Files
F15504008: D15672.id37764.diff
Mon, Apr 14, 2:59 PM
F15504007: D15672.id37776.diff
Mon, Apr 14, 2:59 PM
F15504006: D15672.id.diff
Mon, Apr 14, 2:59 PM
F15503392: D15672.diff
Mon, Apr 14, 9:35 AM
F15428939: D15672.diff
Mar 23 2025, 11:32 PM
F15401520: D15672.id37764.diff
Mar 17 2025, 6:04 PM
F15387405: D15672.id37776.diff
Mar 15 2025, 2:20 AM
F15369311: D15672.id.diff
Mar 12 2025, 6:11 AM
Subscribers
None

Details

Summary

Ref T4571. If cluster.databases is configured but only has replicas, implicitly drop to read-only mode and send writes to a replica.

Test Plan
  • Disabled the master, saw Phabricator automatically degrade into read-only mode against replicas.
  • (Also tested: explicit read-only mode, non-cluster mode, properly configured cluster mode).

Diff Detail

Repository
rP Phabricator
Branch
readonly9
Lint
Lint Passed
SeverityLocationCodeMessage
Advicesrc/infrastructure/cluster/PhabricatorDatabaseRef.php:357XHP16TODO Comment
Unit
Tests Passed
Build Status
Buildable 11633
Build 14553: Run Core Tests
Build 14552: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to When no master database is configured, automatically degrade to read-only mode.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Apr 10 2016, 3:50 PM
This revision was automatically updated to reflect the committed changes.