From 1fc5306a64213756d8cc77a76f12fe2a50a1ef13 Mon Sep 17 00:00:00 2001 From: Wesley Hershberger Date: Thu, 20 Jun 2024 15:20:36 -0500 Subject: [PATCH] example/cmd/microctl: Report recovery tarball path during recovery Signed-off-by: Wesley Hershberger --- example/cmd/microctl/cluster_members.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/example/cmd/microctl/cluster_members.go b/example/cmd/microctl/cluster_members.go index 17377557..511553ea 100644 --- a/example/cmd/microctl/cluster_members.go +++ b/example/cmd/microctl/cluster_members.go @@ -258,12 +258,14 @@ func (c *cmdClusterEdit) run(cmd *cobra.Command, args []string) error { return err } - err = m.RecoverFromQuorumLoss(newMembers) + tarballPath, err := m.RecoverFromQuorumLoss(newMembers) if err != nil { return fmt.Errorf("cluster edit: %w", err) } - fmt.Println("Cluster reconfigured successfully") + fmt.Printf("Cluster changes applied; new database state saved to %s\n\n", tarballPath) + fmt.Printf("*Before* starting any cluster member, copy %s to %s on all remaining cluster members.\n\n", tarballPath, tarballPath) + fmt.Printf("microd will load this file during startup.\n") return nil }