tikv / tikv/pd

PD-ctl should show the timestamps in a consistent way

Open
#4,730 2 comments 3 reactions 0 assignees View on GitHub
type/enhancement
Dominant language
Go
Stars
1.2k
Forks
783
Avg merge
5d 21h
Merged PRs (30d)
36

Description

When we call `pd-ctl store` , it shows the timestamps in 4 different ways, see below example:
```
{
"store": {
...
"git_hash": "6c1424706f3d5885faa668233f34c9f178302f36",
"start_timestamp": 1647365006, <========= 10 digits unix timestamp
...
"last_heartbeat": 1647373317633963588, <========= 19 digits unix timestamp
"state_name": "Up"
},
"status": {
....
"start_ts": "2022-03-15T17:23:26Z", <========= YYYY-MM-DDTHH:mm:ss
"last_heartbeat_ts": "2022-03-15T19:41:57.633963588Z", <========= YYYY-MM-DDTHH:mm:ss:nnnnnnnnn
...
}
}
```

It's pretty hard to evaluate the difference between unix timestamps and the date time format. Please \ show the timestamps in a consistent way.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.