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

All Describe command unified get data from metad #489

Merged
merged 4 commits into from
Jun 6, 2019
Merged

All Describe command unified get data from metad #489

merged 4 commits into from
Jun 6, 2019

Conversation

laura-ding
Copy link
Contributor

1、Describe Tag and Edge from metad
2、"Use space" get spaceId from metad
3、Modify DescribeSpace

@laura-ding laura-ding added the ready-for-testing PR: ready for the CI test label Jun 3, 2019
@laura-ding
Copy link
Contributor Author

jenkins go

@nebula-community-bot
Copy link
Member

Unit testing failed.

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.

Bravo!

auto spaceId = req.get_space_id();
auto spaceRet = getSpaceId(req.get_space_name());
if (!spaceRet.ok()) {
resp_.set_code(to(std::move(spaceRet.status())));
Copy link
Contributor

Choose a reason for hiding this comment

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

use std::move(spaceRet).status() instead.

BTW. Please change to to passing by const reference. Then here std::move is no longer needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! 👍

@@ -316,7 +330,7 @@ TEST(ProcessorTest, CreateEdgeTest) {
ASSERT_EQ(cpp2::ErrorCode::E_EXISTED, resp.code);
}
{
// create same name edge in diff spaces
// Create same name edge in diff spaces
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@nebula-community-bot
Copy link
Member

Unit testing passed.

dutor
dutor previously approved these changes Jun 5, 2019
@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 taking care of it.

auto error = [this] (auto &&e) {
LOG(ERROR) << "Exception caught: " << e.what();
DCHECK(onError_);
onError_(Status::Error("Internal 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 real error message.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The error message is internal, I think user can’t need konw it directly, but need to Unified classification of error information in the future. Please accept it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Make sense.

auto error = [this] (auto &&e) {
LOG(ERROR) << "Exception caught: " << e.what();
DCHECK(onError_);
onError_(Status::Error("Internal error"));
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

dangleptr
dangleptr previously approved these changes Jun 6, 2019
@laura-ding laura-ding dismissed stale reviews from dangleptr and dutor via 0608fc8 June 6, 2019 05:56
@nebula-community-bot
Copy link
Member

Unit testing passed.

@nebula-community-bot
Copy link
Member

Unit testing failed.

@laura-ding
Copy link
Contributor Author

jenkins go

@nebula-community-bot
Copy link
Member

Unit testing passed.

@dutor dutor merged commit dc2f40c into vesoft-inc:master Jun 6, 2019
@laura-ding
Copy link
Contributor Author

close #435

@laura-ding laura-ding deleted the descFromMetad branch October 30, 2019 10:59
yixinglu pushed a commit to yixinglu/nebula that referenced this pull request Feb 16, 2020
* Describe Tag and Edge from metad

* Address dutor's comment

* Fix to
tong-hao pushed a commit to tong-hao/nebula that referenced this pull request Jun 1, 2021
* Describe Tag and Edge from metad

* Address dutor's comment

* Fix to
yixinglu pushed a commit to yixinglu/nebula that referenced this pull request Mar 21, 2022
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