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

Use correct address for CloseAddr #1140

Merged
merged 7 commits into from
Jan 27, 2024

Conversation

pingyu
Copy link
Contributor

@pingyu pingyu commented Jan 25, 2024

Close #1141

Changes

  • Add ErrConn to wrap connection error and get target address and version of the connArray on which raise the error.
  • Use target address from ErrConn for CloseAddr
  • Add ver to connArray to avoid unnecessary closing due to concurrent read/write on connArray.

Signed-off-by: Ping Yu <[email protected]>
Signed-off-by: Ping Yu <[email protected]>
Signed-off-by: Ping Yu <[email protected]>
Signed-off-by: Ping Yu <[email protected]>
Signed-off-by: Ping Yu <[email protected]>
Signed-off-by: Ping Yu <[email protected]>
Signed-off-by: Ping Yu <[email protected]>
@pingyu pingyu changed the title [WIP] Use correct address for CloseAddr Use correct address for CloseAddr Jan 25, 2024
Copy link
Contributor

@zeminzhou zeminzhou left a comment

Choose a reason for hiding this comment

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

LGTM

@pingyu pingyu merged commit f3d4bda into tikv:tidb-cse-7.5 Jan 27, 2024
9 checks passed
zeminzhou pushed a commit to zeminzhou/client-go that referenced this pull request Feb 28, 2024
* 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]>
zeminzhou pushed a commit to zeminzhou/client-go that referenced this pull request Feb 28, 2024
* 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]>
zeminzhou pushed a commit to zeminzhou/client-go that referenced this pull request Feb 28, 2024
* 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]>
zeminzhou pushed a commit to zeminzhou/client-go that referenced this pull request Feb 28, 2024
* 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]>
Signed-off-by: zzm <[email protected]>
zeminzhou pushed a commit to zeminzhou/client-go that referenced this pull request Mar 13, 2024
* 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]>
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
* 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]>
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.

3 participants