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

store/tikv: do not send batch commands to tiflash (#17282) #17307

Merged
merged 2 commits into from
May 20, 2020

Conversation

sre-bot
Copy link
Contributor

@sre-bot sre-bot commented May 20, 2020

cherry-pick #17282 to release-4.0


What problem does this PR solve?

Problem Summary:

After set @@global.tidb_allow_batch_cop = true and send query to tiflash; Sometimes it will report TiKV server timeout error. Observing the tidb log, it has many ["receive a grpc cancel signal from remote"] [error="rpc error: code = Canceled desc = grpc: the client connection is closing"].

It's because client_batch.go will recycle "idle" connection, but TiFlash request does not use client_batch request, its connection is deleted by mistake.

What's Changed:

After discussion, we decide not to send batch commands to tiflash

Tests

  • Manual test

Side effects

This is not a important feature fot tiflash, so it has no side effects

Release note

  • Do not send batch commands to tiflash, to fix unpredictable timeout for tiflash engine.

Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
@sre-bot
Copy link
Contributor Author

sre-bot commented May 20, 2020

/run-all-tests

Copy link
Contributor

@ilovesoup ilovesoup left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@jebter
Copy link

jebter commented May 20, 2020

/merge

@sre-bot sre-bot added the status/can-merge Indicates a PR has been approved by a committer. label May 20, 2020
@sre-bot
Copy link
Contributor Author

sre-bot commented May 20, 2020

/run-all-tests

@sre-bot sre-bot merged commit bcc692a into pingcap:release-4.0 May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/can-merge Indicates a PR has been approved by a committer. type/4.0-cherry-pick
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants