Page MenuHomePhabricator

Make "bin/storage destroy" target individual hosts in database cluster mode
ClosedPublic

Authored by epriestley on Sep 4 2019, 5:08 PM.
Tags
None
Referenced Files
F19829675: D20784.diff
Tue, Mar 10, 7:31 AM
F19829611: D20784.id49558.diff
Tue, Mar 10, 7:07 AM
F19741176: D20784.id49558.diff
Feb 15 2026, 10:35 AM
F19542904: D20784.diff
Jan 22 2026, 1:14 PM
F19269008: D20784.id49559.diff
Dec 22 2025, 9:20 PM
F19083048: D20784.id49559.diff
Dec 2 2025, 12:29 PM
F18985189: D20784.id49558.diff
Nov 17 2025, 12:55 PM
F18827308: D20784.id49559.diff
Oct 24 2025, 9:16 AM
Subscribers
None

Details

Summary

Ref T13336. Currently, "bin/storage destroy" destroys every master. This is wonderfully destructive, but if replication fails it's useful to be able to destroy only a replica.

Operate on a single host, and require "--host" to target the operation in cluster mode, so bin/storage destroy --host dbreplica001 is a useful operation.

Test Plan

Ran bin/storage destroy with various flags locally. Will destroy secure002 and refresh replication.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Sep 4 2019, 5:10 PM
epriestley requested review of this revision.
This revision was automatically updated to reflect the committed changes.