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

Support Cluster Management #3343

Merged
merged 7 commits into from
Dec 14, 2021
Merged

Conversation

darionyaphet
Copy link
Contributor

What type of PR is this?

  • bug
  • feature
  • enhancement

What does this PR do?

Which issue(s)/PR(s) this PR relates to?

Special notes for your reviewer, ex. impact of this fix, etc:

Additional context:

Checklist:

  • Documentation affected (Please add the label if documentation needs to be modified.)
  • Incompatible (If it is incompatible, please describe it and add corresponding label.)
  • Need to cherry-pick (If need to cherry-pick to some branches, please label the destination version(s).)
  • Performance impacted: Consumes more CPU/Memory

Release notes:

Please confirm whether to reflect in release notes and how to describe:

                                                            `

@darionyaphet darionyaphet added the wip Solution: work in progress label Nov 23, 2021
@darionyaphet darionyaphet force-pushed the white-list branch 2 times, most recently from 86e45df to b3735fd Compare November 24, 2021 10:24
@darionyaphet darionyaphet force-pushed the white-list branch 4 times, most recently from 88f47bb to 20df766 Compare November 30, 2021 10:16
@darionyaphet darionyaphet changed the title White list Support Cluster Management Nov 30, 2021
@darionyaphet darionyaphet force-pushed the white-list branch 2 times, most recently from 8982691 to 9ba6c21 Compare November 30, 2021 10:29
@darionyaphet darionyaphet added ready-for-testing PR: ready for the CI test and removed wip Solution: work in progress labels Nov 30, 2021
@darionyaphet darionyaphet force-pushed the white-list branch 5 times, most recently from 5b52893 to 10ddf08 Compare November 30, 2021 13:12
@darionyaphet darionyaphet force-pushed the white-list branch 4 times, most recently from f5f8803 to bfc12a4 Compare December 1, 2021 14:52
src/graph/executor/admin/SpaceExecutor.cpp Outdated Show resolved Hide resolved
src/meta/ActiveHostsMan.cpp Outdated Show resolved Hide resolved
@@ -145,7 +177,7 @@ ErrorOr<nebula::cpp2::ErrorCode, std::vector<HostAddr>> ActiveHostsMan::getActiv
return activeHosts;
}

ErrorOr<nebula::cpp2::ErrorCode, std::vector<HostAddr>> ActiveHostsMan::getActiveHostsWithGroup(
ErrorOr<nebula::cpp2::ErrorCode, std::vector<HostAddr>> ActiveHostsMan::getActiveHostsWithZones(
Copy link
Contributor

Choose a reason for hiding this comment

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

@liwenhui-soul This interface could be deleted? So as getActiveHostsInZone.

Copy link
Contributor

Choose a reason for hiding this comment

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

sure,I don't use it any more

Copy link
Contributor

@critical27 critical27 Dec 13, 2021

Choose a reason for hiding this comment

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

ok, plz delete all related interfaces in your PR

src/meta/processors/zone/DropHostsProcessor.cpp Outdated Show resolved Hide resolved
@@ -24,43 +24,12 @@ void DropZoneProcessor::process(const cpp2::DropZoneReq& req) {
return;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Where do we check host is empty? The space properties is not impacted?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

DROP ZONE will be fixed in the next pr. This one only remove some group related function

@darionyaphet darionyaphet force-pushed the white-list branch 2 times, most recently from d56c550 to aa997e6 Compare December 8, 2021 03:42
@@ -145,7 +177,7 @@ ErrorOr<nebula::cpp2::ErrorCode, std::vector<HostAddr>> ActiveHostsMan::getActiv
return activeHosts;
}

ErrorOr<nebula::cpp2::ErrorCode, std::vector<HostAddr>> ActiveHostsMan::getActiveHostsWithGroup(
ErrorOr<nebula::cpp2::ErrorCode, std::vector<HostAddr>> ActiveHostsMan::getActiveHostsWithZones(
Copy link
Contributor

@critical27 critical27 Dec 13, 2021

Choose a reason for hiding this comment

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

ok, plz delete all related interfaces in your PR

critical27
critical27 previously approved these changes Dec 13, 2021
Copy link
Contributor

@critical27 critical27 left a comment

Choose a reason for hiding this comment

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

LGTM now, good job

liwenhui-soul
liwenhui-soul previously approved these changes Dec 13, 2021
@critical27
Copy link
Contributor

critical27 commented Dec 13, 2021

Please write some document about what should user do after the PR merged.

@darionyaphet
Copy link
Contributor Author

I'm fix some python test case failed

@codecov-commenter
Copy link

Codecov Report

Merging #3343 (be03d2b) into master (9a0fbb6) will decrease coverage by 0.19%.
The diff coverage is 86.21%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3343      +/-   ##
==========================================
- Coverage   85.40%   85.21%   -0.20%     
==========================================
  Files        1289     1304      +15     
  Lines      119798   121212    +1414     
==========================================
+ Hits       102317   103292     +975     
- Misses      17481    17920     +439     
Impacted Files Coverage Δ
src/clients/meta/MetaClient.h 95.65% <ø> (ø)
src/common/graph/Response.h 45.66% <ø> (ø)
src/common/time/TimezoneInfo.cpp 50.00% <ø> (+4.54%) ⬆️
src/graph/executor/admin/AddHostsExecutor.cpp 0.00% <0.00%> (ø)
src/graph/executor/admin/AddHostsExecutor.h 0.00% <0.00%> (ø)
src/graph/executor/admin/DropHostsExecutor.cpp 0.00% <0.00%> (ø)
src/graph/executor/admin/DropHostsExecutor.h 0.00% <0.00%> (ø)
src/graph/executor/admin/ShowHostsExecutor.h 100.00% <ø> (ø)
src/graph/planner/plan/Admin.cpp 52.45% <0.00%> (-3.69%) ⬇️
src/graph/planner/plan/PlanNode.h 81.25% <ø> (ø)
... and 134 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 58914a7...be03d2b. Read the comment docs.

@wenhaocs
Copy link
Contributor

Otherwise, LGTM and thank you for enhancing the code out of the zoning project in this PR.

@critical27 critical27 merged commit 6b7560b into vesoft-inc:master Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc affected PR: improvements or additions to documentation incompatible PR: incompatible with the recently released version ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants