-
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
cluster: reuse cluster.DeployOption and spec.PDScaleScript #1253
Conversation
return err | ||
} | ||
return os.WriteFile(file, config, 0755) | ||
return c.configWithScript("run_pd_scale.sh.tpl") |
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.
I think this may not work as you expected since you removed func (c *PDScaleScript) WithXXX
.
When we call WithXXX in scale out stage, the WithXXX
will return a PDScript pointer because you removed WithXXX
on PDScaleScript
(it will fallback to PDScript's WithXXX). Then when you call ConfigToFile or Config
, it will call on PDScript
, so the script generated in scale-out stage is not correct.
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.
Thanks for your professional advice 👍
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.
PTAL
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.
Still not work because PDScaleScript not implements ConfigToFile
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.
Sorry, please take another look.
7520239
to
bdf2bb5
Compare
Codecov Report
@@ Coverage Diff @@
## master #1253 +/- ##
==========================================
- Coverage 26.17% 3.09% -23.08%
==========================================
Files 263 79 -184
Lines 18841 6944 -11897
==========================================
- Hits 4931 215 -4716
+ Misses 13144 6703 -6441
+ Partials 766 26 -740
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
bdf2bb5
to
450b25d
Compare
/lgtm |
[REVIEW NOTIFICATION] This pull request has been approved by:
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 writing |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 450b25d
|
/hold The github actions seems to be very slow now, we'll hold all PRs until the |
/hold cancel |
/run-all-tests |
What problem does this PR solve?
What is changed and how it works?
Check List
Tests
Code changes
Side effects
Related changes
Release notes: