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

api: add replication status to region #2340

Merged
merged 1 commit into from
Apr 10, 2020
Merged

Conversation

disksing
Copy link
Contributor

Signed-off-by: disksing [email protected]

What problem does this PR solve?

Fix #2338

What is changed and how it works?

./bin/pd-ctl region
{"count":1,"regions":[{"id":2,"start_key":"","end_key":"","epoch":{"conf_ver":1,"version":1},"peers":[{"id":3,"store_id":1}],"leader":{"id":3,"store_id":1},"written_bytes":41,"read_bytes":0,"written_keys":1,"read_keys":0,"approximate_size":1,"approximate_keys":0,"replication_status":{"state":"INTEGRITY_OVER_LABEL","state_id":4}}]}

Check List

Tests

  • Manual test (add detailed scripts or steps below)
    • start cluster with replication mode and query region

Code changes

@disksing disksing added the type/enhancement The issue or PR belongs to an enhancement. label Apr 10, 2020
@disksing disksing added this to the v4.0.0-ga milestone Apr 10, 2020
@disksing
Copy link
Contributor Author

/merge

@sre-bot sre-bot added the status/can-merge Indicates a PR has been approved by a committer. label Apr 10, 2020
@sre-bot
Copy link
Contributor

sre-bot commented Apr 10, 2020

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Apr 10, 2020

@disksing merge failed.

@disksing
Copy link
Contributor Author

travis CI env problem, merging.

@disksing disksing merged commit c84d31b into tikv:master Apr 10, 2020
@disksing disksing deleted the region-info branch April 10, 2020 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/can-merge Indicates a PR has been approved by a committer. type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Synchronous replication: add region status in RegionInfo and API result
4 participants