Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose Raft Applied Index through to "etcdctl endpoint status" #9176

Merged
merged 1 commit into from
Jan 22, 2018
Merged

Expose Raft Applied Index through to "etcdctl endpoint status" #9176

merged 1 commit into from
Jan 22, 2018

Conversation

dvonthenen
Copy link

@dvonthenen dvonthenen commented Jan 19, 2018

Implements Raft Applied Index to be displayed "etcdctl endpoint status"
This addresses issue: #9123

Tested on a local cluster.

Copy link
Contributor

@gyuho gyuho left a 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"?

@@ -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"
Copy link
Contributor

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"

Copy link
Author

@dvonthenen dvonthenen Jan 19, 2018

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.

@@ -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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/appliedIndex/raftAppliedIndex/

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@xiang90
Copy link
Contributor

xiang90 commented Jan 22, 2018

LGTM after fixing the gofmt issue from CI

Starting 'gofmt' pass at Fri Jan 19 23:45:29 UTC 2018
gofmt checking failed:
etcdctl/ctlv3/command/printer.go
diff -u etcdctl/ctlv3/command/printer.go.orig etcdctl/ctlv3/command/printer.go
--- etcdctl/ctlv3/command/printer.go.orig	2018-01-19 23:45:30.221860995 +0000
+++ etcdctl/ctlv3/command/printer.go	2018-01-19 23:45:30.221860995 +0000
@@ -20,8 +20,8 @@
 	"strings"
 
 	v3 "github.com/coreos/etcd/clientv3"
-	"github.com/dustin/go-humanize"
 	pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
+	"github.com/dustin/go-humanize"
 )

Fixed based on feedback

Fixed spacing

Fix gofmt
@xiang90
Copy link
Contributor

xiang90 commented Jan 22, 2018

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants