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

fix scan vertex/edge do not handle ttl #4578

Merged
merged 3 commits into from
Aug 26, 2022
Merged

Conversation

critical27
Copy link
Contributor

What type of PR is this?

  • bug
  • feature
  • enhancement

What problem(s) does this PR solve?

Issue(s) number:

https://github.com/vesoft-inc/nebula-ent/issues/1162

Description:

As title, scan vertex/edge does not handle ttl, and some of code in the community/ent version are not unified.

How do you solve it?

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

Checklist:

Tests:

  • Unit test(positive and negative cases)
  • Function test
  • Performance test
  • N/A

Affects:

  • Documentation affected (Please add the label if documentation needs to be modified.)
  • Incompatibility (If it breaks the compatibility, please describe it and add the label.)
  • If it's needed to cherry-pick (If cherry-pick to some branches is required, please label the destination version(s).)
  • Performance impacted: Consumes more CPU/Memory

Release notes:

Please confirm whether to be reflected in release notes and how to describe:

ex. Fixed the bug .....

@critical27 critical27 added the ready-for-testing PR: ready for the CI test label Aug 23, 2022
@critical27 critical27 changed the title Fix fix scan vertex/edge do not handle ttl Aug 23, 2022
List row;
nebula::cpp2::ErrorCode ret = nebula::cpp2::ErrorCode::SUCCEEDED;
// Usually there is only one edge node, when all of the egdeNodes are invalid (e.g. ttl
// expired), just skip the row. If we don't skip it, there will be a whole line of empty value.
Copy link
Contributor

@Shylock-Hg Shylock-Hg Aug 24, 2022

Choose a reason for hiding this comment

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

In fact, we should return one row only if vertex key exists.

Copy link
Contributor Author

@critical27 critical27 Aug 24, 2022

Choose a reason for hiding this comment

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

Where did you handle this in scan before? BTW, this is scan edge, not scan vertex. Besides, the vertex key will be removed very soon later

Copy link
Contributor

Choose a reason for hiding this comment

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

When introducing this, there is no vertex key.

Copy link
Contributor

Choose a reason for hiding this comment

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

It's a bug delayed #3688

Copy link
Contributor

@panda-sheep panda-sheep left a comment

Choose a reason for hiding this comment

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

Good job

@@ -75,6 +75,7 @@ nebula::cpp2::ErrorCode ScanVertexProcessor::checkAndBuildContexts(
return nullptr;
}
});
buildTagTTLInfo();
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@Sophie-Xie Sophie-Xie merged commit d575380 into vesoft-inc:master Aug 26, 2022
@critical27 critical27 deleted the fix branch August 26, 2022 09:50
@Sophie-Xie Sophie-Xie added the affects/v3.2 PR/issue: this bug affects v3.2.x version. label Aug 30, 2022
Sophie-Xie pushed a commit that referenced this pull request Aug 30, 2022
* fix scan vertex/edge do not handle ttl

* use ErrorCode to unify community version and end version
Sophie-Xie pushed a commit that referenced this pull request Sep 7, 2022
* fix scan vertex/edge do not handle ttl

* use ErrorCode to unify community version and end version
Sophie-Xie added a commit that referenced this pull request Sep 13, 2022
* fix lookup (#4552)

fix

Co-authored-by: jimingquan <[email protected]>
Co-authored-by: Sophie <[email protected]>

* fix split brain in raft (#4479)

Co-authored-by: Sophie <[email protected]>

* fix invalid filter in GetProp make storage crashed (#4568)

Co-authored-by: haowen <[email protected]>

* fix scan vertex/edge do not handle ttl (#4578)

* fix scan vertex/edge do not handle ttl

* use ErrorCode to unify community version and end version

* Fix #1212. Return FoldConstantExprVisitor, if status_ already failed due to found syantax errors. (#4607)

Co-authored-by: jie.wang <[email protected]>

* Avoid fatal when expression illegal. (#4618)

* Fix concurrent exception related to multi-match statement (#4605)

* fix filter executor

* Fix concurrency exception of multi-match statements

fix iterator

fix

small delete

small delete

skip iterator type handle for concurrency

small delete

fix scan edges

small delete

small delete

fix

small delete

small change

small change

fix ut

small fix

Co-authored-by: Sophie <[email protected]>

* Prune properties(#4523)

* fix conflict

* extract attribute from properties function (#4604)

* extract attribute from properties function

* fix error

* fix subscript error

* add test case

* process scanEdges

* fix test error

* add unwind & check vidType when executing not validate (#4456)

* Update AppendVerticesExecutor.cpp

fix conflict

* Update AppendVerticesExecutor.cpp

* Replace obsolete RocksDB API (#4395)

Co-authored-by: Sophie <[email protected]>

* Update PrunePropertiesRule.feature

* remove useless dc (#4533)

* Update PrunePropertiesRule.feature

* fix test error

Co-authored-by: kyle.cao <[email protected]>
Co-authored-by: jimingquan <[email protected]>
Co-authored-by: liwenhui-soul <[email protected]>
Co-authored-by: Doodle <[email protected]>
Co-authored-by: haowen <[email protected]>
Co-authored-by: Cheng Xuntao <[email protected]>
Co-authored-by: jie.wang <[email protected]>
Co-authored-by: shylock <[email protected]>
Co-authored-by: Qiaolin Yu <[email protected]>
@Sophie-Xie Sophie-Xie added cherry-pick-v3.2 PR: need cherry-pick to this version and removed affects/v3.2 PR/issue: this bug affects v3.2.x version. labels Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-v3.2 PR: need cherry-pick to this version 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.

5 participants