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 error for checkpoint when space doesn't exist in storageNode. #2287

Merged
merged 4 commits into from
Aug 17, 2020
Merged

fix error for checkpoint when space doesn't exist in storageNode. #2287

merged 4 commits into from
Aug 17, 2020

Conversation

bright-starry-sky
Copy link
Contributor

No description provided.

@bright-starry-sky bright-starry-sky added the ready-for-testing PR: ready for the CI test label Aug 10, 2020
dangleptr
dangleptr previously approved these changes Aug 13, 2020
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.

darionyaphet
darionyaphet previously approved these changes Aug 13, 2020
std::unique_ptr<kvstore::KVIterator> iter;
auto kvRet = kv_->prefix(kDefaultSpaceId, kDefaultPartId, prefix, &iter);
if (kvRet != kvstore::ResultCode::SUCCEEDED) {
return {};
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe it is an error ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

em... What's the difference between '{}' and 'empty list'?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

maybe it is an error ?

I see what you mean. let me fix it.

@bright-starry-sky
Copy link
Contributor Author

Please hold this PR.

@dangleptr
Copy link
Contributor

Please hold this PR.

Any concerns?

@bright-starry-sky
Copy link
Contributor Author

Please hold this PR.

Any concerns?

By @darionyaphet's comment . An invalid checkpoint will be created when kv_->prefix error occur.

@bright-starry-sky
Copy link
Contributor Author

Addressed darionyaphet's comment.
Ready to review again. Thanks.

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.

LGTM

@dangleptr dangleptr merged commit 65b5d61 into vesoft-inc:master Aug 17, 2020
xuguruogu pushed a commit to xuguruogu/nebula that referenced this pull request Sep 12, 2020
…soft-inc#2287)

* fix error for checkpoint

* fix error for checkpoint

* Addressed darionyaphet's comment

Co-authored-by: dangleptr <37216992+dangleptr@users.noreply.github.com>
tong-hao pushed a commit to tong-hao/nebula that referenced this pull request Jun 1, 2021
…soft-inc#2287)

* fix error for checkpoint

* fix error for checkpoint

* Addressed darionyaphet's comment

Co-authored-by: dangleptr <37216992+dangleptr@users.noreply.github.com>
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