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

*: refactor storeInfo. #712

Merged
merged 3 commits into from Aug 28, 2017

Conversation

Projects
None yet
3 participants
@disksing
Member

disksing commented Aug 24, 2017

Fix #634.
Now the outputs are:

  • Normal
{
  "store": {
    "id": 1,
    "address": "127.0.0.1:20160",
    "state": 0,
    "state_name": "Up"
  },
  "status": {
    "capacity": "229 GiB",
    "available": "80 GiB",
    "leader_count": 1,
    "region_count": 1,
    "start_ts": "2017-08-24T10:22:55+08:00",
    "last_heartbeat_ts": "2017-08-24T10:25:06.133247517+08:00",
    "uptime": "2m11.133247517s"
  }
}
  • Down
{
  "store": {
    "id": 1,
    "address": "127.0.0.1:20160",
    "state": 0,
    "state_name": "Down"
  },
  "status": {
    "capacity": "229 GiB",
    "available": "80 GiB",
    "region_count": 1,
    "start_ts": "2017-08-24T10:22:55+08:00",
    "last_heartbeat_ts": "2017-08-24T10:25:16.133257177+08:00",
    "uptime": "2m21.133257177s"
  }
}
  • Offline
{
  "store": {
    "id": 1,
    "address": "127.0.0.1:20160",
    "state": 1,
    "state_name": "Offline"
  },
  "status": {
    "capacity": "229 GiB",
    "available": "80 GiB",
    "region_count": 1,
    "start_ts": "2017-08-24T10:26:28+08:00",
    "last_heartbeat_ts": "2017-08-24T10:26:58.50635968+08:00",
    "uptime": "30.50635968s"
  }
}
  • Down + Offline + Restart PD
{
  "store": {
    "id": 1,
    "address": "127.0.0.1:20160",
    "state": 1,
    "state_name": "Offline"
  },
  "status": {
    "region_count": 1
  }
}

@disksing disksing requested review from nolouch and huachaohuang Aug 24, 2017

@disksing

This comment has been minimized.

Show comment
Hide comment
@disksing

disksing Aug 24, 2017

Member

Travis CI fails because etcd was too slow and pd was not able to bootstrap. I'm going to just restart it.

Member

disksing commented Aug 24, 2017

Travis CI fails because etcd was too slow and pd was not able to bootstrap. I'm going to just restart it.

@huachaohuang

This comment has been minimized.

Show comment
Hide comment
@huachaohuang

huachaohuang Aug 24, 2017

Member

Good, LGTM

Member

huachaohuang commented Aug 24, 2017

Good, LGTM

@nolouch

LGTM

@disksing disksing merged commit d092c8f into master Aug 28, 2017

4 checks passed

ci/circleci Your tests passed on CircleCI!
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
license/cla Contributor License Agreement is signed.
Details

@disksing disksing deleted the disksing/store-status branch Aug 28, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment