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

Close connection when get gRPC error Code.Canceled #1121

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

pingyu
Copy link
Contributor

@pingyu pingyu commented Jan 17, 2024

Close #1120

Close connection when get gRPC error as Code.Canceled, as the error would be caused by keep alive timeout. Then the next retry will try to establish the connection again. Otherwise, as underlying gRPC client has been canceled, we will keep get the same error.

Signed-off-by: Ping Yu <[email protected]>
@pingyu
Copy link
Contributor Author

pingyu commented Jan 17, 2024

@bufferflies @iosmanthus @zeminzhou PTAL, thanks~

@pingyu pingyu merged commit 9676f18 into tikv:tidb-cse-7.5 Jan 17, 2024
9 checks passed
zeminzhou pushed a commit to zeminzhou/client-go that referenced this pull request Feb 28, 2024
zeminzhou pushed a commit to zeminzhou/client-go that referenced this pull request Feb 28, 2024
zeminzhou pushed a commit to zeminzhou/client-go that referenced this pull request Feb 28, 2024
zeminzhou pushed a commit to zeminzhou/client-go that referenced this pull request Feb 28, 2024
Signed-off-by: Ping Yu <[email protected]>
Signed-off-by: zzm <[email protected]>
zeminzhou pushed a commit to zeminzhou/client-go that referenced this pull request Mar 13, 2024
iosmanthus pushed a commit that referenced this pull request Mar 13, 2024
Co-authored-by: zzm <[email protected]>
Co-authored-by: glorv <[email protected]>
Co-authored-by: disksing <[email protected]>
Co-authored-by: cfzjywxk <[email protected]>
Co-authored-by: ShuNing <[email protected]>
Co-authored-by: ekexium <[email protected]>
Co-authored-by: Yongbo Jiang <[email protected]>
Co-authored-by: David <[email protected]>
Co-authored-by: Evan Zhou <[email protected]>
Co-authored-by: iosmanthus <[email protected]>
Co-authored-by: Ryan Leung <[email protected]>
Co-authored-by: jinhelin <[email protected]>
Co-authored-by: iosmanthus <[email protected]>
Co-authored-by: Ping Yu <[email protected]>
fix: check kill signal against 0 (#1102)" (#1129)"
fix safepoint kv with keyspace name (#928)
fix encoding of mvcc get by key (#775)
close on canceled (#1121)
Fix wait recvloop timeout (#1134)
CloseAddr (#1140)
Fix timeout of TestResolveTxnFallbackFromAsyncCommit (#1146)
pingyu added a commit to pingyu/client-go that referenced this pull request Mar 13, 2024
pingyu added a commit that referenced this pull request Mar 14, 2024
* close on canceled (#1121)

Signed-off-by: Ping Yu <[email protected]>

* Fix wait recvloop timeout (#1134)

* wip

Signed-off-by: Ping Yu <[email protected]>

* CloseAddr with ver

Signed-off-by: Ping Yu <[email protected]>

* fix ErrConn

Signed-off-by: Ping Yu <[email protected]>

* fix ut

Signed-off-by: Ping Yu <[email protected]>

* cleanup

Signed-off-by: Ping Yu <[email protected]>

---------

Signed-off-by: Ping Yu <[email protected]>

* Use correct address for CloseAddr (#1140)

* wip

Signed-off-by: Ping Yu <[email protected]>

* CloseAddr with ver

Signed-off-by: Ping Yu <[email protected]>

* fix ErrConn

Signed-off-by: Ping Yu <[email protected]>

* fix ut

Signed-off-by: Ping Yu <[email protected]>

* polish

Signed-off-by: Ping Yu <[email protected]>

* polish

Signed-off-by: Ping Yu <[email protected]>

* polish

Signed-off-by: Ping Yu <[email protected]>

---------

Signed-off-by: Ping Yu <[email protected]>

* rebase

Signed-off-by: Ping Yu <[email protected]>

---------

Signed-off-by: Ping Yu <[email protected]>
Co-authored-by: iosmanthus <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants