diff --git a/command/operator_raft_info.go b/command/operator_raft_info.go index a93d3e5ea..8bc120aef 100644 --- a/command/operator_raft_info.go +++ b/command/operator_raft_info.go @@ -18,7 +18,10 @@ func (c *OperatorRaftInfoCommand) Help() string { helpText := ` Usage: nomad operator raft _info - Displays info about the raft logs in the data directory + Displays info about the raft logs in the data directory. + + This is a low-level debugging tool and not subject to Nomad's usual backward + compatibility guarantees. ` return strings.TrimSpace(helpText) } diff --git a/command/operator_raft_state.go b/command/operator_raft_state.go index 3527fa758..8779cb9f3 100644 --- a/command/operator_raft_state.go +++ b/command/operator_raft_state.go @@ -23,7 +23,7 @@ Usage: nomad operator raft _state Options: - --last-index= + -last-index= Set the last log index to be applied, to drop spurious log entries not properly committed. If passed last_index is zero or negative, it's perceived as an offset from the last index seen in raft. @@ -73,7 +73,7 @@ func (c *OperatorRaftStateCommand) Run(args []string) int { } else if _, err := os.Stat(filepath.Join(args[0], "raft.db")); err == nil { p = args[0] } else { - c.Ui.Error("path needs to be a data dir path with raft.db file") + c.Ui.Error(fmt.Sprintf("path needs to be a data dir path with raft.db file: %v", err)) return 1 }