-
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
Fix/scalein pump monitor not reloaded #958
Fix/scalein pump monitor not reloaded #958
Conversation
Codecov Report
@@ Coverage Diff @@
## master #958 +/- ##
==========================================
- Coverage 55.78% 49.06% -6.73%
==========================================
Files 263 263
Lines 19522 19587 +65
==========================================
- Hits 10891 9610 -1281
- Misses 6903 8449 +1546
+ Partials 1728 1528 -200
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
||
var regenConfigTasks []task.Task | ||
deletedNodes := set.NewStringSet(nodes...) | ||
topo.IterInstance(func(instance spec.Instance) { |
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.
Can we add a function such as RefreshConfig
to build the regenConfigTasks
? I found that there is a lot of redundant code: https://github.com/pingcap/tiup/pull/958/files#diff-5609f7b865f14ce911938ab0a8f21caa07446244d9c106a5df27ba9c08cf80e6R1386
Notice: there are many other places use the same logic, we can replace that logic with just a function call:
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.
Good idea
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.
As this PR contains 200+ lines modified, IMO, I'll trigger another PR to do the refactor work. BTW the file manager.go
is too large(~ 3000 loc), I want to split this file into some small files If you agree with it. :)
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.
It's very nice if you can split the manager.go
, I want to do that days ago.
I think we can add a package (eg. tiup/pkg/cluster/manager
) which contains several .go files, each of them has different function (eg. split by Deploy
, Start
, 'ScaleOut` .etc.)
deea6cc
to
f6df856
Compare
/lgtm |
/merge |
Can merge label has been added. Git tree hash: 6238d42
|
What problem does this PR solve?
Fix #936
What is changed and how it works?
Check List
Tests
Code changes
Side effects
Related changes
Release notes: