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

cluster: Allows setting other storage config for TiFlash when storage.main is not defined #2161

Merged
merged 2 commits into from
Apr 12, 2023

Conversation

breezewish
Copy link
Member

@breezewish breezewish commented Apr 9, 2023

What problem does this PR solve?

TiUP Cluster will reject the deployment for the following TiFlash config:

config:
  storage.remote.dir: /tmp/tiflash/remote

Actually this is fine: TiFlash does not require storage.main defined in this case.

What is changed and how it works?

Only check storage.main exists when storage.latest or storage.raft is defined.

Check List

Tests

  • Unit test

Release notes:

Allows setting other storage config for TiFlash when `storage.main` is not defined

…defined

Signed-off-by: Wish <breezewish@outlook.com>
@ti-chi-bot
Copy link
Member

ti-chi-bot commented Apr 9, 2023

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • kaaaaaaang

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot requested review from kaaaaaaang and srstack April 9, 2023 02:17
@ti-chi-bot ti-chi-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Apr 9, 2023
@codecov-commenter
Copy link

codecov-commenter commented Apr 9, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -13.92 ⚠️

Comparison is base (a35df90) 56.07% compared to head (d39e4eb) 42.15%.

❗ Current head d39e4eb differs from pull request most recent head 598a9c8. Consider uploading reports for the commit 598a9c8 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #2161       +/-   ##
===========================================
- Coverage   56.07%   42.15%   -13.92%     
===========================================
  Files         317      317               
  Lines       33575    33567        -8     
===========================================
- Hits        18825    14147     -4678     
- Misses      12501    17735     +5234     
+ Partials     2249     1685      -564     
Flag Coverage Δ
cluster ?
dm 26.07% <0.00%> (+0.05%) ⬆️
playground 15.35% <0.00%> (+0.01%) ⬆️
tiup 16.02% <0.00%> (+0.01%) ⬆️
unittest 22.66% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/cluster/spec/tiflash.go 44.46% <100.00%> (-24.57%) ⬇️

... and 125 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@JaySon-Huang JaySon-Huang left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-chi-bot
Copy link
Member

@JaySon-Huang: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments.

In response to this:

LGTM

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@kaaaaaaang
Copy link
Collaborator

/merge

@ti-chi-bot
Copy link
Member

@kaaaaaaang: /merge in this pull request requires 1 approval(s).

In response to this:

/merge

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Apr 12, 2023
@kaaaaaaang
Copy link
Collaborator

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 598a9c8

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Apr 12, 2023
@ti-chi-bot ti-chi-bot merged commit 6169cec into master Apr 12, 2023
@ti-chi-bot ti-chi-bot deleted the wenxuan/tiflash-storage-check branch April 12, 2023 08:45
@nexustar nexustar added this to the 1.12.1 milestone Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M Denotes a PR that changes 30-99 lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants