-
Notifications
You must be signed in to change notification settings - Fork 131
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
upgrade grpc to 1.23 #756
upgrade grpc to 1.23 #756
Conversation
/run-all-tests |
/run-integration-tests tidb=release-3.0 tikv=release-3.0 pd=release-3.0 |
/run-integration-tests tidb=release-3.0 tikv=release-3.0 pd=release-3.0 |
/run-all-tests tidb=release-3.0 tikv=release-3.0 pd=release-3.0 |
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.
LGTM
Very Nice!LGTM |
/run-all-tests tidb=release-3.0 tikv=release-3.0 pd=release-3.0 |
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.
LGTM
* go.mod: upgrade grpc to 1.23 * Fix client blocks until it receives a SETTINGS frame from the server * grpc.WithDialer is deprecated: use WithContextDialer instead.
* go.mod: upgrade grpc to 1.23 * Fix client blocks until it receives a SETTINGS frame from the server * grpc.WithDialer is deprecated: use WithContextDialer instead.
* go.mod: upgrade grpc to 1.23 * Fix client blocks until it receives a SETTINGS frame from the server * grpc.WithDialer is deprecated: use WithContextDialer instead.
* go.mod: upgrade grpc to 1.23 * Fix client blocks until it receives a SETTINGS frame from the server * grpc.WithDialer is deprecated: use WithContextDialer instead.
@@ -376,7 +376,12 @@ func (s *Server) Start() error { | |||
// sets a timeout for the read of matchers | |||
m.SetReadTimeout(time.Second * 10) | |||
|
|||
grpcL := m.Match(cmux.HTTP2HeaderField("content-type", "application/grpc")) | |||
// grpcL := m.Match(cmux.HTTP2HeaderField("content-type", "application/grpc")) |
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.
Why do we keep this line?
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.
I think we can and better just delete it.
What problem does this PR solve?
After pingcap/tidb#12055 tidb upgrade grpc to 1.23, the client can't no longer connect to pump server.
What is changed and how it works?
upgrade to gRPC to 1.23 from 1.17.
change cmux how to match for gRPC, see:
soheilhy/cmux#64
https://github.com/soheilhy/cmux#limitations
this still compatible with the older version tidb(with gRPC client 1.17).
Check List
Tests
run with 1.23 and 1.17 gRPC client version tidb
Code changes
Side effects
Related changes