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
Unknown Object (File)
Sat, Apr 6, 3:49 AM
Unknown Object (File)
Tue, Apr 2, 1:40 AM
Unknown Object (File)
Fri, Mar 29, 11:55 AM
Unknown Object (File)
Thu, Mar 21, 5:36 AM
Unknown Object (File)
Feb 7 2024, 8:30 PM
Unknown Object (File)
Dec 26 2023, 4:36 AM
Unknown Object (File)
Dec 4 2023, 2:50 PM
Unknown Object (File)
Nov 30 2023, 5:41 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.