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

Add a flag to determine if TiFlash is enabled #351

Merged
merged 2 commits into from
Nov 30, 2021
Merged

Conversation

ankita25
Copy link
Contributor

@ankita25 ankita25 commented Nov 29, 2021

What problem does this PR solve?

TiKV client currently assumes that TiFlash is deployed and starts a threadpool to periodically check tiflash replica status
#350

What is changed and how it works?

Added a boolean flag to determine if tiflash is enabled . The default value is false.

Check List

Tests

  • Unit test

Code changes

  • Has exported function/method change

Side effects

  • Increased code complexity

Related changes

  • Need to update the documentation

Signed-off-by: Ankita Wagh <[email protected]>
@zz-jason
Copy link
Member

@ankita25 thanks for your contribution! could you please take a look at the checklist in the PR description, remove the unnecessary checks?

BTW, please add a unit test for the code.

@ankita25
Copy link
Contributor Author

Is it required to deploy tidb cluster locally? All tests seem to be expecting that.

Signed-off-by: Ankita Wagh <[email protected]>
Copy link
Collaborator

@marsishandsome marsishandsome left a comment

Choose a reason for hiding this comment

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

LGTM

@marsishandsome
Copy link
Collaborator

/run-all-tests

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

@zz-jason
Copy link
Member

/merge

@ti-srebot
Copy link
Collaborator

/run-all-tests

@ti-srebot ti-srebot merged commit e2f10aa into tikv:master Nov 30, 2021
ti-srebot pushed a commit to ti-srebot/client-java that referenced this pull request Dec 9, 2021
@ti-srebot
Copy link
Collaborator

cherry pick to release-3.1 in PR #374

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants