Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

feat(bulk_load): add query compaction status http interface #696

Merged
merged 15 commits into from
Dec 28, 2020

Conversation

hycdong
Copy link
Contributor

@hycdong hycdong commented Dec 18, 2020

This pull request adds replica http interface for query app compaction status.

http 'http://10.132.5.2:34801/replica/compaction?app_id=37'

HTTP/1.1 200 OK
Content-Length: 83
Content-Type: text/plain

{
    "status": {
        "CompactionFinish": "48", 
        "CompactionQueue": "0", 
        "CompactionRunning": "0"
    }
}

src/replica/test/replica_test.cpp Outdated Show resolved Hide resolved
@@ -78,6 +78,14 @@ namespace test {
class test_checker;
}

enum manual_compaction_status
{
CompactionFinish = 0,
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

https://google.github.io/styleguide/cppguide.html#Enumerator_Names

It says "Enumerators (for both scoped and unscoped enums) should be named like constants, not like macros. That is, use kEnumName not ENUM_NAME." :(

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is my mistake, now it is fixed.

src/replica/replica.cpp Outdated Show resolved Hide resolved
src/replica/replica.cpp Show resolved Hide resolved
neverchanje
neverchanje previously approved these changes Dec 25, 2020
@foreverneverer foreverneverer merged commit 2dd3b75 into XiaoMi:master Dec 28, 2020
@hycdong hycdong deleted the add_query_compaction_http branch December 28, 2020 07:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants