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

feat(http): update query manual compaction interface #805

Merged
merged 2 commits into from
Mar 30, 2021

Conversation

hycdong
Copy link
Contributor

@hycdong hycdong commented Mar 30, 2021

#696 adds a http interface to query manual compaction status, this pr updates it:

  • rename all compact and compaction into manual_compact and manual_compaction
  • add a new status kIdle to distinguish not execute manual compaction and manual compaction finished
  • update count in response from string into integer

The previous request and response is like:

curl 'http://localhost:34801/replica/compaction?app_id=1'
{
    "status": {
        "CompactionFinish": "8", 
        "CompactionQueue": "0", 
        "CompactionRunning": "0"
    }
}

The new request and response is like:

curl 'http://localhost:34801/replica/manual_compaction?app_id=1'
{
    "status": {
        "finished": 8,
        "idle": 0, 
        "queuing": 0, 
        "running": 0
    }
}

@hycdong hycdong added the component/http HTTP/RESTful support label Mar 30, 2021
@levy5307 levy5307 merged commit 72c207b into XiaoMi:master Mar 30, 2021
@hycdong hycdong deleted the update_query_compaction_http branch April 7, 2021 09:59
@hycdong hycdong added the 2.2.0 label Aug 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2.2.0 component/http HTTP/RESTful support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants