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: refine streaming client re-create log and use a smarter backoff strategy #11307

Merged
merged 6 commits into from
Jul 22, 2019

Conversation

tiancaiamao
Copy link
Contributor

What problem does this PR solve?

When TiKV is down, or restart and bind to another port, the re-create streaming client loop can't perceive the changes.
Although we use the recycle idle connections mechanism to handle that, the error log is still boring and makes our users confusing.

What is changed and how it works?

  • Print error log for 10 times, ignore more error logs.
  • Use a smarter backoff strategy

Check List

Tests

  • No code

Related changes

  • Need to cherry-pick to the release branch

@tiancaiamao tiancaiamao added type/enhancement The issue or PR belongs to an enhancement. needs-cherry-pick-3.0 component/tikv labels Jul 18, 2019
@codecov
Copy link

codecov bot commented Jul 18, 2019

Codecov Report

Merging #11307 into master will decrease coverage by 0.2606%.
The diff coverage is 100%.

@@              Coverage Diff               @@
##           master     #11307        +/-   ##
==============================================
- Coverage   81.53%   81.2694%   -0.2607%     
==============================================
  Files         424        423         -1     
  Lines       91408      90152      -1256     
==============================================
- Hits        74525      73266      -1259     
+ Misses      11594      11578        -16     
- Partials     5289       5308        +19

@tiancaiamao
Copy link
Contributor Author

PTAL @hicqu @jackysp

Copy link
Contributor

@lysu lysu left a comment

Choose a reason for hiding this comment

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

LGTM

@tiancaiamao
Copy link
Contributor Author

PTAL @jackysp

@tiancaiamao tiancaiamao added the status/LGT1 Indicates that a PR has LGTM 1. label Jul 19, 2019
@tiancaiamao
Copy link
Contributor Author

/run-all-tests

store/tikv/client_batch.go Outdated Show resolved Hide resolved
store/tikv/client_batch.go Outdated Show resolved Hide resolved
store/tikv/client_batch.go Outdated Show resolved Hide resolved
Copy link
Contributor

@SunRunAway SunRunAway left a comment

Choose a reason for hiding this comment

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

LGTM

@tiancaiamao
Copy link
Contributor Author

PTAL @lysu

@SunRunAway
Copy link
Contributor

/run-all-tests

@SunRunAway SunRunAway added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jul 22, 2019
Copy link
Contributor

@lysu lysu left a comment

Choose a reason for hiding this comment

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

LGTM

@lysu lysu merged commit 1c8038c into pingcap:master Jul 22, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Jul 22, 2019

cherry pick to release-3.0 failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/tikv status/LGT2 Indicates that a PR has LGTM 2. type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants