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

Add http interfaces for flush and compaction #677

Merged
merged 3 commits into from
Jul 30, 2019

Conversation

dangleptr
Copy link
Contributor

No description provided.

@dangleptr dangleptr added the ready-for-testing PR: ready for the CI test label Jul 23, 2019
@dangleptr
Copy link
Contributor Author

Jenkins go

@nebula-community-bot
Copy link
Member

Unit testing passed.

resp_ = "Op should not be empty. Usage: http:://ip:port/admin?space=xx&op=yy";
return;
}
if (schemaMan_ == nullptr || kv_ == nullptr) {
Copy link
Contributor

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

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 point

wadeliuyi
wadeliuyi previously approved these changes Jul 23, 2019
Copy link
Contributor

@wadeliuyi wadeliuyi left a comment

Choose a reason for hiding this comment

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

LGTM

whitewum
whitewum previously approved these changes Jul 23, 2019
@@ -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;
Copy link
Contributor

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

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 point

@dangleptr dangleptr dismissed stale reviews from whitewum and wadeliuyi via 8d13849 July 24, 2019 01:47
@nebula-community-bot
Copy link
Member

Unit testing failed.

@nebula-community-bot
Copy link
Member

Unit testing passed.

1 similar comment
@nebula-community-bot
Copy link
Member

Unit testing passed.

wadeliuyi
wadeliuyi previously approved these changes Jul 24, 2019
Copy link
Contributor

@wadeliuyi wadeliuyi left a comment

Choose a reason for hiding this comment

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

LGTM

whitewum
whitewum previously approved these changes Jul 24, 2019
resp_ = folly::stringPrintf("Error inside");
return;
}
auto* space = headers->getQueryParamPtr("space");
Copy link
Contributor

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 ?

@nebula-community-bot
Copy link
Member

Unit testing passed.

}
auto* op = headers->getQueryParamPtr("op");
if (op == nullptr) {
err_ = HttpCode::SUCCEEDED;
Copy link
Contributor

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 ?

@nebula-community-bot
Copy link
Member

Unit testing failed.

@dangleptr
Copy link
Contributor Author

Jenkins go

@nebula-community-bot
Copy link
Member

Unit testing passed.

@nebula-community-bot
Copy link
Member

Unit testing passed.

@dangleptr dangleptr merged commit 7a9b4f4 into vesoft-inc:master Jul 30, 2019
@dangleptr dangleptr deleted the compact branch July 30, 2019 10:12
@jude-zhu
Copy link
Contributor

subtask of #724

tong-hao pushed a commit to tong-hao/nebula that referenced this pull request Jun 1, 2021
yixinglu pushed a commit to yixinglu/nebula that referenced this pull request Mar 21, 2022
<!--
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>
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.

7 participants