-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 http interfaces for flush and compaction #677
Conversation
Jenkins go |
Unit testing passed. |
resp_ = "Op should not be empty. Usage: http:://ip:port/admin?space=xx&op=yy"; | ||
return; | ||
} | ||
if (schemaMan_ == nullptr || kv_ == nullptr) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe can move this check to front of this function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
src/kvstore/NebulaStore.h
Outdated
@@ -151,7 +151,9 @@ class NebulaStore : public KVStore, public Handler { | |||
const std::string& configKey, | |||
const std::string& configValue); | |||
|
|||
ResultCode compactAll(GraphSpaceID spaceId); | |||
ResultCode compactAll(GraphSpaceID spaceId) override; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
compactALL sounds like compact all spaces
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point
Unit testing failed. |
Unit testing passed. |
1 similar comment
Unit testing passed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
resp_ = folly::stringPrintf("Error inside"); | ||
return; | ||
} | ||
auto* space = headers->getQueryParamPtr("space"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use headers->hasQueryParam
to check whether the argument is setting ?
Unit testing passed. |
} | ||
auto* op = headers->getQueryParamPtr("op"); | ||
if (op == nullptr) { | ||
err_ = HttpCode::SUCCEEDED; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When some argument is missing, why not E_ILLEGAL_ARGUMENT
?
Unit testing failed. |
Jenkins go |
Unit testing passed. |
Unit testing passed. |
subtask of #724 |
<!-- Thanks for your contribution! In order to review PR more efficiently, please add information according to the template. --> #### What type of PR is this? - [ ] bug - [ ] feature - [x] enhancement #### What problem(s) does this PR solve? Issue(s) number: close vesoft-inc#3309 Description: small fix and add annotation. #### 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 - [x] 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 ..... Migrated from vesoft-inc#4012 Co-authored-by: jakevin <30525741+jackwener@users.noreply.github.com>
No description provided.