-
Notifications
You must be signed in to change notification settings - Fork 312
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
mkdir for raftdb-path #2198
base: master
Are you sure you want to change the base?
mkdir for raftdb-path #2198
Conversation
Signed-off-by: Smityz <[email protected]>
[REVIEW NOTIFICATION] This pull request has not been approved. To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #2198 +/- ##
===========================================
- Coverage 56.40% 45.26% -11.14%
===========================================
Files 318 317 -1
Lines 33465 33464 -1
===========================================
- Hits 18873 15145 -3728
- Misses 12351 16285 +3934
+ Partials 2241 2034 -207
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2198 +/- ##
==========================================
- Coverage 55.53% 50.22% -5.31%
==========================================
Files 325 324 -1
Lines 34757 34757
==========================================
- Hits 19300 17455 -1845
- Misses 13144 15004 +1860
+ Partials 2313 2298 -15
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Smityz <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
pkg/cluster/spec/tikv.go
Outdated
@@ -461,6 +462,15 @@ func (i *TiKVInstance) PostRestart(ctx context.Context, topo Topology, tlsCfg *t | |||
return nil | |||
} | |||
|
|||
func (i *TiKVInstance) ExtraDirs() []string { | |||
configMap := reflect.Indirect(reflect.ValueOf(i.InstanceSpec)).FieldByName("Config").Interface().(map[string]interface{}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about:
spec := i.InstanceSpec.(*TiKVSpec)
raftDir := spec.Config["raftstore.raftdb-path"]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
[LGTM Timeline notifier]Timeline:
|
Thanks! @lucklove PTAL~ |
PR needs rebase. 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 kubernetes/test-infra repository. |
If we set
raftstore.raftdb-path
to a location different fromdata_dir
, we need to create a folder forraftstore.raftdb-path
in TiUP.If community wants to merge this PR, I will add some unit test