-
Notifications
You must be signed in to change notification settings - Fork 9.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Expose Raft Applied Index through to "etcdctl endpoint status" #9176
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also could you reformat the commit title to *: expose Raft Applied Index through to "etcdctl endpoint status"
?
etcdctl/ctlv3/command/printer.go
Outdated
@@ -20,7 +20,7 @@ import ( | |||
"strings" | |||
|
|||
v3 "github.com/coreos/etcd/clientv3" | |||
"github.com/dustin/go-humanize" | |||
humanize "github.com/coreos/etcd/gopath/src/github.com/dustin/go-humanize" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep import path as it is? "github.com/dustin/go-humanize"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's odd. I didn't make that change. Will change it back.
UPDATE: looks like Visual Studio Code is doing that automatically when I save the file.
etcdserver/etcdserverpb/rpc.proto
Outdated
@@ -907,6 +907,8 @@ message StatusResponse { | |||
uint64 raftIndex = 5; | |||
// raftTerm is the current raft term of the responding member. | |||
uint64 raftTerm = 6; | |||
// appliedIndex is the current raft applied index of the responding member. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/appliedIndex/raftAppliedIndex/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
LGTM after fixing the gofmt issue from CI
|
Fixed based on feedback Fixed spacing Fix gofmt
lgtm |
Implements Raft Applied Index to be displayed "etcdctl endpoint status"
This addresses issue: #9123
Tested on a local cluster.