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 zone operations #3444

Merged
merged 7 commits into from
Dec 28, 2021
Merged

Support zone operations #3444

merged 7 commits into from
Dec 28, 2021

Conversation

darionyaphet
Copy link
Contributor

@darionyaphet darionyaphet commented Dec 9, 2021

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 Dec 9, 2021
@darionyaphet darionyaphet added ready-for-testing PR: ready for the CI test and removed wip Solution: work in progress labels Dec 17, 2021
@codecov-commenter
Copy link

codecov-commenter commented Dec 20, 2021

Codecov Report

Merging #3444 (fb78eb1) into master (53b85dc) will decrease coverage by 6.05%.
The diff coverage is 89.81%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3444      +/-   ##
==========================================
- Coverage   85.19%   79.14%   -6.06%     
==========================================
  Files        1306     1251      -55     
  Lines      122158   105097   -17061     
==========================================
- Hits       104078    83174   -20904     
- Misses      18080    21923    +3843     
Impacted Files Coverage Δ
src/clients/meta/MetaClient.h 95.65% <ø> (ø)
src/codec/test/ResultSchemaProvider.h 100.00% <ø> (ø)
src/common/expression/VariableExpression.cpp 84.84% <ø> (-0.45%) ⬇️
src/common/geo/GeoIndex.h 100.00% <ø> (ø)
src/common/utils/MetaKeyUtils.cpp 69.46% <ø> (-11.58%) ⬇️
src/graph/executor/Executor.cpp 83.73% <0.00%> (ø)
src/graph/executor/admin/ZoneExecutor.cpp 9.78% <0.00%> (-2.06%) ⬇️
src/graph/executor/admin/ZoneExecutor.h 14.28% <0.00%> (ø)
src/graph/executor/maintain/EdgeIndexExecutor.cpp 92.06% <ø> (ø)
src/graph/executor/maintain/TagIndexExecutor.cpp 92.80% <ø> (ø)
... and 351 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 408d731...fb78eb1. Read the comment docs.

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.

Please check the lock in all processors

src/parser/parser.yy Outdated Show resolved Hide resolved
src/parser/parser.yy Outdated Show resolved Hide resolved
src/meta/processors/zone/MergeZoneProcessor.cpp Outdated Show resolved Hide resolved
}
folly::Baton<true, std::atomic> baton;
auto result = nebula::cpp2::ErrorCode::SUCCEEDED;
kvstore_->asyncMultiRemove(kDefaultSpaceId,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why don't use LogBatch? You can't promise it is atomic. So as DropHost and other processor, please check it

Copy link
Contributor

Choose a reason for hiding this comment

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

Check all processor zone related, e.g. DropHostProcessor in previous PR

critical27
critical27 previously approved these changes Dec 23, 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.

Well done~

liuyu85cn
liuyu85cn previously approved these changes Dec 28, 2021
@critical27
Copy link
Contributor

Don't merge pls

@Sophie-Xie Sophie-Xie changed the title Support zone operations 【DNM】Support zone operations Dec 28, 2021
@Sophie-Xie Sophie-Xie changed the title 【DNM】Support zone operations Support zone operations Dec 28, 2021
@CPWstatic CPWstatic merged commit 4962c25 into vesoft-inc:master Dec 28, 2021
@darionyaphet darionyaphet deleted the zone branch December 28, 2021 14:21
@Sophie-Xie Sophie-Xie added the doc affected PR: improvements or additions to documentation label Jan 4, 2022
@cooper-lzy cooper-lzy self-requested a review January 5, 2022 02:51
@foesa-yang foesa-yang added this to Done in Nebula Docs Jan 17, 2022
@randomJoe211 randomJoe211 moved this from Done to Ready for archiving in Nebula Docs Jan 18, 2022
@Sophie-Xie Sophie-Xie mentioned this pull request Jan 29, 2022
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 ready for review ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants