Skip to content

track how many times vstreaclient is opened and closed#6097

Closed
hihihuhu wants to merge 1 commit intovitessio:masterfrom
hihihuhu:master
Closed

track how many times vstreaclient is opened and closed#6097
hihihuhu wants to merge 1 commit intovitessio:masterfrom
hihihuhu:master

Conversation

@hihihuhu
Copy link
Copy Markdown

The VStreamerClient shares the connection when Open is called, however, each time Close is called, it closes the connection, and this causes problems in the resharding flow .

The VStreamerClient is opened for VStreamRows in copyTable, then inside the loop, it is opened again for the fastForward. The fastForward will close the client when it is done, however, a side effect is the connection for VStreamRows is closed and the whole copy process is reset.

So add a counter to the client and only close it when no one uses it anymore.

@hihihuhu hihihuhu requested a review from sougou as a code owner April 20, 2020 19:53
Signed-off-by: Chen Ding <dingc05@gmail.com>
@sougou
Copy link
Copy Markdown
Contributor

sougou commented Apr 20, 2020

VStreamClient has been reworked on this branch: https://github.com/planetscale/vitess/tree/ss-vrepl-external. It will soon be submitted as a PR.

It should address some of the concerns about too many connections, reconnections and subsequent schema reloads. If the problem persists after that, we can look at adding observability (or improvements) to vstreamer.

@sougou
Copy link
Copy Markdown
Contributor

sougou commented May 11, 2020

VStreamClient is now obsolete #6103. Closing this PR.

@sougou sougou closed this May 11, 2020
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.

2 participants