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

Add AlterEdgeProcessor, GetEdgeProcessor, RemoveEdgeProcessor and UTs #346

Merged
merged 5 commits into from
May 10, 2019
Merged

Add AlterEdgeProcessor, GetEdgeProcessor, RemoveEdgeProcessor and UTs #346

merged 5 commits into from
May 10, 2019

Conversation

laura-ding
Copy link
Contributor

add AlterEdgeProcessor, GetEdgeProcessor, RemoveEdgeProcessor

@nebula-community-bot
Copy link
Member

Unit testing passed.

Copy link
Contributor

@dangleptr dangleptr 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~ Thanks for your quick response!

folly::SharedMutex::ReadHolder rHolder(LockUtils::edgeLock());
std::string val;
std::string edgeKey = MetaServiceUtils::schemaEdgeKey(req.get_space_id(),
req.get_edge_type(),
Copy link
Contributor

Choose a reason for hiding this comment

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

alignment

}

StatusOr<std::vector<std::string>> RemoveEdgeProcessor::getEdgeKeys(GraphSpaceID id,
const std::string& edgeName) {
Copy link
Contributor

Choose a reason for hiding this comment

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

alignment

auto addItem = cpp2::AlterTagItem(FRAGILE,
cpp2::AlterTagOp::ADD,
auto addItem = cpp2::AlterSchemaItem(FRAGILE,
cpp2::AlterSchemaOp::ADD,
Copy link
Contributor

Choose a reason for hiding this comment

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

alignment

onFinished();
return;
}
folly::SharedMutex::WriteHolder wHolder(LockUtils::tagLock());
Copy link
Contributor

Choose a reason for hiding this comment

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

Use edgeLock

for (auto& col : cols) {
auto retCode = MetaServiceUtils::alterColumnDefs(columns, col, edgeItem.op);
if (retCode != cpp2::ErrorCode::SUCCEEDED) {
LOG(WARNING) << "Alter edge error";
Copy link
Contributor

Choose a reason for hiding this comment

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

Output the retCode in LOG

@dangleptr
Copy link
Contributor

Rename the issue's title by the way. It not only adds UTs.

@laura-ding laura-ding changed the title #332 Add UTs for processors in meta Add AlterEdgeProcessor, GetEdgeProcessor, RemoveEdgeProcessor and UTs May 10, 2019
@nebula-community-bot
Copy link
Member

Unit testing passed.

@dangleptr
Copy link
Contributor

LGTM now. Fix the conflicts

modify SET to CHANGE
@nebula-community-bot
Copy link
Member

Unit testing failed.

@nebula-community-bot
Copy link
Member

Unit testing passed.

dangleptr
dangleptr previously approved these changes May 10, 2019
Copy link
Contributor

@dangleptr dangleptr left a comment

Choose a reason for hiding this comment

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

LGTM. Well done.

@dutor dutor added the ready-for-testing PR: ready for the CI test label May 10, 2019
Copy link
Contributor

@dutor dutor left a comment

Choose a reason for hiding this comment

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

LGTM

@nebula-community-bot
Copy link
Member

Unit testing passed.

@dutor dutor merged commit 166e434 into vesoft-inc:master May 10, 2019
@dutor dutor deleted the optimizeCode branch May 10, 2019 11:13
yixinglu pushed a commit to yixinglu/nebula that referenced this pull request Feb 16, 2020
…vesoft-inc#346)

* add AlterEdgeProcessor, GetEdgeProcessor, RemoveEdgeProcessor

* address dangleptr's comment

* rebase master
modify SET to CHANGE

* fix UT
tong-hao pushed a commit to tong-hao/nebula that referenced this pull request Jun 1, 2021
…vesoft-inc#346)

* add AlterEdgeProcessor, GetEdgeProcessor, RemoveEdgeProcessor

* address dangleptr's comment

* rebase master
modify SET to CHANGE

* fix UT
yixinglu pushed a commit to yixinglu/nebula that referenced this pull request Mar 21, 2022
Co-authored-by: Shylock Hg <[email protected]>
Co-authored-by: Sophie <[email protected]>

Co-authored-by: sworduo <[email protected]>
Co-authored-by: Shylock Hg <[email protected]>
Co-authored-by: Sophie <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants