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 incompatibility imported by https://github.com/vesoft-inc/nebula/pull/4116 #4165

Merged
merged 3 commits into from
Apr 18, 2022

Conversation

Aiee
Copy link
Contributor

@Aiee Aiee commented Apr 15, 2022

Add SaveGraphVersionProcessor to separate client version check and version saving

What type of PR is this?

  • bug
  • feature
  • enhancement

What problem(s) does this PR solve?

Issue(s) number:

Description:

Add SaveGraphVersionProcessor to separate client version check and version saving

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 .....

@Aiee Aiee added ready-for-testing PR: ready for the CI test type/bug Type: something is unexpected labels Apr 15, 2022
@Aiee Aiee requested a review from a team as a code owner April 15, 2022 09:11
@Aiee Aiee requested review from CPWstatic and jievince April 15, 2022 09:17
@Sophie-Xie Sophie-Xie added the cherry-pick-v3.1 PR: need cherry-pick to this version label Apr 15, 2022
}
auto resp = std::move(respStatus).value();
if (resp.get_code() != nebula::cpp2::ErrorCode::SUCCEEDED) {
return Status::Error("Client verified failed: %s", resp.get_error_msg()->c_str());
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe another error message?

@Aiee Aiee requested a review from HarrisChu April 15, 2022 10:14
HarrisChu
HarrisChu previously approved these changes Apr 15, 2022
@Shylock-Hg
Copy link
Contributor

What's the problem?

@Aiee
Copy link
Contributor Author

Aiee commented Apr 15, 2022

What's the problem?

#4116 This PR causes sdk meta client fail to create connections when if the host address is a follower.

@Shylock-Hg
Copy link
Contributor

What's the problem?

#4116 This PR causes sdk meta client fail to create connections when if the host address is a follower.

Do we allow to access follower?

@Aiee
Copy link
Contributor Author

Aiee commented Apr 15, 2022

What's the problem?

#4116 This PR causes sdk meta client fail to create connections when if the host address is a follower.

Do we allow to access follower?

No, all read/write should be done through the leader.

@codecov-commenter
Copy link

Codecov Report

Merging #4165 (cc89e98) into master (07cbbac) will decrease coverage by 0.15%.
The diff coverage is 95.29%.

@@            Coverage Diff             @@
##           master    #4165      +/-   ##
==========================================
- Coverage   85.08%   84.92%   -0.16%     
==========================================
  Files        1324     1321       -3     
  Lines      131911   131125     -786     
==========================================
- Hits       112236   111362     -874     
- Misses      19675    19763      +88     
Impacted Files Coverage Δ
src/clients/meta/MetaClient.h 92.30% <ø> (ø)
src/graph/executor/admin/SpaceExecutor.cpp 76.92% <ø> (-0.29%) ⬇️
src/graph/executor/admin/SubmitJobExecutor.cpp 52.45% <0.00%> (ø)
src/graph/executor/algo/BFSShortestPathExecutor.h 100.00% <ø> (ø)
src/graph/executor/algo/ProduceAllPathsExecutor.h 100.00% <ø> (ø)
src/graph/executor/query/DataCollectExecutor.h 100.00% <ø> (ø)
src/graph/optimizer/OptRule.h 100.00% <ø> (ø)
src/graph/planner/match/MatchClausePlanner.cpp 96.03% <ø> (-2.75%) ⬇️
src/graph/planner/match/MatchPlanner.h 100.00% <ø> (ø)
src/graph/planner/ngql/PathPlanner.h 100.00% <ø> (ø)
... and 141 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 26f8fc8...cc89e98. Read the comment docs.

@Aiee Aiee requested a review from HarrisChu April 15, 2022 12:53
Copy link
Contributor

@HarrisChu HarrisChu left a comment

Choose a reason for hiding this comment

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

LGTM

@CPWstatic CPWstatic merged commit d6df28c into vesoft-inc:master Apr 18, 2022
@Aiee Aiee deleted the fix-verify branch April 18, 2022 02:12
Sophie-Xie pushed a commit that referenced this pull request Apr 18, 2022
* Add SaveGraphVersionProcessor to separate client version check and version saving

* Update error code

* Update error code
Sophie-Xie pushed a commit that referenced this pull request Apr 20, 2022
* Add SaveGraphVersionProcessor to separate client version check and version saving

* Update error code

* Update error code
Sophie-Xie added a commit that referenced this pull request Apr 20, 2022
* fix issue 4152 (#4158)

* Fix optional of multi-match (#4159)

* fix optional of multi-match

* format

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

* Fix incompatibility imported by #4116 (#4165)

* Add SaveGraphVersionProcessor to separate client version check and version saving

* Update error code

* Update error code

* optimizer path (#4162)

* optimizer multi-shortest path

* new algorithm

* fix error

* skip heartbeat for tool (#4177)

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

* Fix/null pattern expression input (#4180)

* Move input rows of Traverse and AppendVertices.

* Avoid skip validate pattern expression with aggregate.

* Fix case.

* Revert "Move input rows of Traverse and AppendVertices."

This reverts commit 7fd1d38.

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

* fix wrong space key after dropping hosts (#4182)

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

* fix vertex is missing from snapshot (#4189)

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

* Expression is stateful to store the result of evaluation, so we can't… (#4190)

* Expression is stateful to store the result of evaluation, so we can't share it inter threads.

* Fix defef nullptr.

Co-authored-by: jie.wang <[email protected]>
Co-authored-by: kyle.cao <[email protected]>
Co-authored-by: Yichen Wang <[email protected]>
Co-authored-by: jimingquan <[email protected]>
Co-authored-by: Doodle <[email protected]>
Co-authored-by: shylock <[email protected]>
Co-authored-by: liwenhui-soul <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-v3.1 PR: need cherry-pick to this version ready-for-testing PR: ready for the CI test type/bug Type: something is unexpected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants