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

clientv3: set current revision to create rev regardless of CreateNotify #7804

Merged
merged 1 commit into from
Apr 22, 2017

Conversation

heyitsanthony
Copy link
Contributor

Turns out the optimization to ignore setting the init rev for
current revision watches breaks some ordering assumptions. Since
Watch only returns a channel once it gets a response, it should
bind the revision at the time of the first create response.

Was causing TestWatchReconnInit to fail.

Turns out the optimization to ignore setting the init rev for
current revision watches breaks some ordering assumptions. Since
Watch only returns a channel once it gets a response, it should
bind the revision at the time of the first create response.

Was causing TestWatchReconnInit to fail.
@codecov-io
Copy link

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #7804   +/-   ##
=========================================
  Coverage          ?   75.63%           
=========================================
  Files             ?      331           
  Lines             ?    26148           
  Branches          ?        0           
=========================================
  Hits              ?    19778           
  Misses            ?     4940           
  Partials          ?     1430
Impacted Files Coverage Δ
clientv3/watch.go 93.7% <100%> (ø)

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 94f6a11...ca4acce. Read the comment docs.

@xiang90
Copy link
Contributor

xiang90 commented Apr 22, 2017

we do not really say any thing about the ordering between watch and other calls from one client. but yea, i agree that this optimization might not worth the effort. the side-effect might be confusing.

@xiang90
Copy link
Contributor

xiang90 commented Apr 22, 2017

lgtm

@heyitsanthony heyitsanthony merged commit c5d4f3e into etcd-io:master Apr 22, 2017
@heyitsanthony heyitsanthony deleted the current-watch-fix branch April 22, 2017 21:09
@gyuho
Copy link
Contributor

gyuho commented Apr 25, 2017

@heyitsanthony Do we backport this as well? This is following change after #7795?

@heyitsanthony
Copy link
Contributor Author

@gyuho yeah

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