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

Deprecate "grpc.ErrClientConnClosing" #10981

Merged
merged 5 commits into from
Aug 5, 2019

Conversation

gyuho
Copy link
Contributor

@gyuho gyuho commented Aug 5, 2019

Fix #9304.

@gyuho gyuho added this to the etcd-v3.4 milestone Aug 5, 2019
@gyuho gyuho mentioned this pull request Aug 5, 2019
19 tasks
@gyuho gyuho requested a review from jpbetz August 5, 2019 07:18
@gyuho gyuho force-pushed the deprecate-grpc-clientconnclosing branch from abf7f92 to b3cd4f2 Compare August 5, 2019 07:53
@codecov-io
Copy link

codecov-io commented Aug 5, 2019

Codecov Report

Merging #10981 into master will increase coverage by 0.61%.
The diff coverage is 12.5%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10981      +/-   ##
==========================================
+ Coverage    63.5%   64.11%   +0.61%     
==========================================
  Files         401      401              
  Lines       37552    37551       -1     
==========================================
+ Hits        23847    24077     +230     
+ Misses      12089    11844     -245     
- Partials     1616     1630      +14
Impacted Files Coverage Δ
proxy/grpcproxy/watch.go 89.75% <0%> (+1.2%) ⬆️
clientv3/client.go 75% <0%> (+1.39%) ⬆️
proxy/grpcproxy/lease.go 79.18% <0%> (ø) ⬆️
proxy/grpcproxy/adapter/chan_stream.go 55.12% <100%> (ø) ⬆️
client/keys.go 60.3% <0%> (-31.16%) ⬇️
clientv3/namespace/watch.go 87.87% <0%> (-6.07%) ⬇️
client/members.go 80.64% <0%> (-4.84%) ⬇️
clientv3/txn.go 95.55% <0%> (-4.45%) ⬇️
proxy/grpcproxy/watcher.go 89.79% <0%> (-4.09%) ⬇️
pkg/testutil/recorder.go 77.77% <0%> (-3.71%) ⬇️
... and 22 more

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 4bf5848...a0cabb5. Read the comment docs.

Copy link
Member

@spzala spzala left a comment

Choose a reason for hiding this comment

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

@gyuho meanwhile we wait on Joe's review, I also looked at it considering we had some discussion around this while moving to Go 1.12.x. It looks good to me with a probably nit as mentioned inline. Thanks!!

CHANGELOG-3.4.md Outdated
@@ -125,6 +125,9 @@ See [code changes](https://github.com/etcd-io/etcd/compare/v3.3.0...v3.4.0) and
- v3.5 will deprecate `etcd --debug` flag in favor of `etcd --log-level=debug`.
- Change v3 `etcdctl snapshot` exit codes with [`snapshot` package](https://github.com/etcd-io/etcd/pull/9118/commits/df689f4280e1cce4b9d61300be13ca604d41670a).
- Exit on error with exit code 1 (no more exit code 5 or 6 on `snapshot save/restore` commands).
- Deprecate [`grpc.ErrClientConnClosing`](https://github.com/etcd-io/etcd/pull/10981).
Copy link
Member

Choose a reason for hiding this comment

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

@gyuho just a nit - useDeprecating (or Deprecated) instead of Deprecate to be consistent with the rest of the changelog and other places like upgrade_3_4.md?

Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is due to the grpc upgrade, put the exact grpc upgrade version as a high level release change note and put this item as note beneath it?

CHANGELOG-3.4.md Outdated
@@ -449,6 +452,9 @@ Note: **v3.5 will deprecate `etcd --log-package-levels` flag for `capnslog`**; `
- `PermitWithoutStream` is set to false by default.
- Fix logic on [release lock key if cancelled](https://github.com/etcd-io/etcd/pull/10153) in `clientv3/concurrency` package.
- Fix [`(*Client).Endpoints()` method race condition](https://github.com/etcd-io/etcd/pull/10595).
- Deprecate [`grpc.ErrClientConnClosing`](https://github.com/etcd-io/etcd/pull/10981).
Copy link
Member

Choose a reason for hiding this comment

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

Same as above.

Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
@gyuho gyuho force-pushed the deprecate-grpc-clientconnclosing branch from b3cd4f2 to a0cabb5 Compare August 5, 2019 20:31
@gyuho
Copy link
Contributor Author

gyuho commented Aug 5, 2019

@jpbetz @spzala All addressed. PTAL. Thanks.

@jpbetz
Copy link
Contributor

jpbetz commented Aug 5, 2019

LGTM

@gyuho gyuho merged commit a494e06 into etcd-io:master Aug 5, 2019
@gyuho gyuho deleted the deprecate-grpc-clientconnclosing branch August 5, 2019 21:37
@spzala
Copy link
Member

spzala commented Aug 5, 2019

@jpbetz @spzala All addressed. PTAL. Thanks.

@gyuho thanks!!
LGTM

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

Successfully merging this pull request may close these issues.

clientv3: deprecate grpc.ErrClientConnClosing
4 participants