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

etcdserver: fill-in Auth API Header in apply layer #7753

Merged
merged 2 commits into from
Apr 17, 2017
Merged

Conversation

gyuho
Copy link
Contributor

@gyuho gyuho commented Apr 17, 2017

Replace #7716 (5e0f9eb).

Fix #7691.

@gyuho gyuho requested review from mitake and heyitsanthony April 17, 2017 18:29
Copy link
Contributor

@heyitsanthony heyitsanthony left a comment

Choose a reason for hiding this comment

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

looks OK aside from the missing header fields

@@ -815,3 +842,7 @@ func pruneKVs(rr *mvcc.RangeResult, isPrunable func(*mvccpb.KeyValue) bool) {
}
rr.KVs = rr.KVs[:j]
}

func newHeader(s *EtcdServer) *pb.ResponseHeader {
return &pb.ResponseHeader{Revision: s.KV().Rev()}
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this fill out all the fields, though?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, let's fill them out as well.

@gyuho gyuho force-pushed the helper branch 2 times, most recently from 1c9b324 to ce31f40 Compare April 17, 2017 21:24
mitake and others added 2 commits April 17, 2017 14:26
Replacing "etcdserver: fill a response header in auth RPCs"
The revision should be set at the time of "apply",
not in later RPC layer.

Fix etcd-io#7691

Signed-off-by: Gyu-Ho Lee <[email protected]>
@gyuho gyuho merged commit c798f81 into etcd-io:master Apr 17, 2017
@gyuho gyuho deleted the helper branch April 17, 2017 22:18
@mitake
Copy link
Contributor

mitake commented Apr 18, 2017

@gyuho thanks and sorry for my late work, yesterday I couldn't allocate a time for the previous versioin of PR...

@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@0d52598). Click here to learn what that means.
The diff coverage is 91.11%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #7753   +/-   ##
=========================================
  Coverage          ?   75.75%           
=========================================
  Files             ?      331           
  Lines             ?    26050           
  Branches          ?        0           
=========================================
  Hits              ?    19733           
  Misses            ?     4893           
  Partials          ?     1424
Impacted Files Coverage Δ
mvcc/kvstore.go 87.89% <ø> (ø)
pkg/transport/listener.go 80.5% <ø> (ø)
embed/serve.go 74.33% <100%> (ø)
mvcc/backend/batch_tx.go 78.57% <100%> (ø)
integration/cluster.go 85.51% <100%> (ø)
embed/etcd.go 67.89% <100%> (ø)
etcdmain/etcd.go 45.49% <100%> (ø)
raft/log_unstable.go 94.11% <100%> (ø)
clientv3/op.go 67.89% <100%> (ø)
etcdserver/apply.go 86.27% <87.87%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0d52598...253e5a9. Read the comment docs.

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.

4 participants