{"action":"created","issue":{"url":"https://api.github.com/repos/cockroachdb/cockroach/issues/28620","repository_url":"https://api.github.com/repos/cockroachdb/cockroach","labels_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/28620/labels{/name}","comments_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/28620/comments","events_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/28620/events","html_url":"https://github.com/cockroachdb/cockroach/issues/28620","id":350771963,"node_id":"MDU6SXNzdWUzNTA3NzE5NjM=","number":28620,"title":"cli: `node status --decommission` mixes up output","user":{"login":"tschottdorf","id":5076964,"node_id":"MDQ6VXNlcjUwNzY5NjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/5076964?v=4","gravatar_id":"","url":"https://api.github.com/users/tschottdorf","html_url":"https://github.com/tschottdorf","followers_url":"https://api.github.com/users/tschottdorf/followers","following_url":"https://api.github.com/users/tschottdorf/following{/other_user}","gists_url":"https://api.github.com/users/tschottdorf/gists{/gist_id}","starred_url":"https://api.github.com/users/tschottdorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschottdorf/subscriptions","organizations_url":"https://api.github.com/users/tschottdorf/orgs","repos_url":"https://api.github.com/users/tschottdorf/repos","events_url":"https://api.github.com/users/tschottdorf/events{/privacy}","received_events_url":"https://api.github.com/users/tschottdorf/received_events","type":"User","site_admin":false},"labels":[{"id":916404262,"node_id":"MDU6TGFiZWw5MTY0MDQyNjI=","url":"https://api.github.com/repos/cockroachdb/cockroach/labels/A-cli","name":"A-cli","color":"4e7f05","default":false}],"state":"open","locked":false,"assignee":{"login":"petermattis","id":6201335,"node_id":"MDQ6VXNlcjYyMDEzMzU=","avatar_url":"https://avatars0.githubusercontent.com/u/6201335?v=4","gravatar_id":"","url":"https://api.github.com/users/petermattis","html_url":"https://github.com/petermattis","followers_url":"https://api.github.com/users/petermattis/followers","following_url":"https://api.github.com/users/petermattis/following{/other_user}","gists_url":"https://api.github.com/users/petermattis/gists{/gist_id}","starred_url":"https://api.github.com/users/petermattis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petermattis/subscriptions","organizations_url":"https://api.github.com/users/petermattis/orgs","repos_url":"https://api.github.com/users/petermattis/repos","events_url":"https://api.github.com/users/petermattis/events{/privacy}","received_events_url":"https://api.github.com/users/petermattis/received_events","type":"User","site_admin":false},"assignees":[{"login":"petermattis","id":6201335,"node_id":"MDQ6VXNlcjYyMDEzMzU=","avatar_url":"https://avatars0.githubusercontent.com/u/6201335?v=4","gravatar_id":"","url":"https://api.github.com/users/petermattis","html_url":"https://github.com/petermattis","followers_url":"https://api.github.com/users/petermattis/followers","following_url":"https://api.github.com/users/petermattis/following{/other_user}","gists_url":"https://api.github.com/users/petermattis/gists{/gist_id}","starred_url":"https://api.github.com/users/petermattis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petermattis/subscriptions","organizations_url":"https://api.github.com/users/petermattis/orgs","repos_url":"https://api.github.com/users/petermattis/repos","events_url":"https://api.github.com/users/petermattis/events{/privacy}","received_events_url":"https://api.github.com/users/petermattis/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/cockroachdb/cockroach/milestones/13","html_url":"https://github.com/cockroachdb/cockroach/milestone/13","labels_url":"https://api.github.com/repos/cockroachdb/cockroach/milestones/13/labels","id":2745639,"node_id":"MDk6TWlsZXN0b25lMjc0NTYzOQ==","number":13,"title":"2.1","description":"","creator":{"login":"knz","id":642886,"node_id":"MDQ6VXNlcjY0Mjg4Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/642886?v=4","gravatar_id":"","url":"https://api.github.com/users/knz","html_url":"https://github.com/knz","followers_url":"https://api.github.com/users/knz/followers","following_url":"https://api.github.com/users/knz/following{/other_user}","gists_url":"https://api.github.com/users/knz/gists{/gist_id}","starred_url":"https://api.github.com/users/knz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knz/subscriptions","organizations_url":"https://api.github.com/users/knz/orgs","repos_url":"https://api.github.com/users/knz/repos","events_url":"https://api.github.com/users/knz/events{/privacy}","received_events_url":"https://api.github.com/users/knz/received_events","type":"User","site_admin":false},"open_issues":661,"closed_issues":1236,"state":"open","created_at":"2017-09-05T15:30:49Z","updated_at":"2018-08-15T11:12:39Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-08-15T11:12:39Z","updated_at":"2018-08-15T12:58:25Z","closed_at":null,"author_association":"MEMBER","body":"On current master 5b184df62c5b21d82c2b6f03623ebd4ec5f92629.\r\n\r\nNote the `is_draining` field, which appears to be showing a replica count (?).\r\nReminds me of https://github.com/cockroachdb/cockroach/pull/27808 which fixed something similar on release-2.0, though the assumption was that the same bug had been taken care of in master.\r\n\r\nWhile this is fixed, we should also add a cli test which evidently doesn't exist today.\r\n\r\n@petermattis you just touched this, but feel free to kick it into the cli team.\r\n\r\n```\r\n$ ./cockroach node status --insecure --decommission\r\n  id |          address          |                    build                     |            started_at            |            updated_at            | is_live | gossiped_replicas | is_decommissioning | is_draining\r\n+----+---------------------------+----------------------------------------------+----------------------------------+----------------------------------+---------+-------------------+--------------------+-------------+\r\n   1 | toblerone.fritz.box:26257 | v2.1.0-alpha.20180702-1566-g5b184df62c-dirty | 2018-08-15 11:08:32.646778+00:00 | 2018-08-15 11:10:07.199025+00:00 |    true |       false       |              false |     22\r\n   2 | toblerone.fritz.box:26259 | v2.1.0-alpha.20180702-1566-g5b184df62c-dirty | 2018-08-15 11:09:01.224461+00:00 | 2018-08-15 11:10:04.24526+00:00  |    true |       false       |              false |     22\r\n   3 | toblerone.fritz.box:26261 | v2.1.0-alpha.20180702-1566-g5b184df62c-dirty | 2018-08-15 11:10:06.092988+00:00 | 2018-08-15 11:10:06.142856+00:00 |    true |       false       |              false |      0\r\n(3 rows)\r\n```\r\n\r\nSame with `--all`:\r\n\r\n```\r\n./cockroach node status --insecure --all\r\n  id |          address          |                    build                     |            started_at            |            updated_at            | is_live | replicas_leaders | replicas_leaseholders | ranges | ranges_unavailable | ranges_underreplicated | live_bytes | key_bytes | value_bytes | intent_bytes | system_bytes | gossiped_replicas | is_decommissioning | is_draining\r\n+----+---------------------------+----------------------------------------------+----------------------------------+----------------------------------+---------+------------------+-----------------------+--------+--------------------+------------------------+------------+-----------+-------------+--------------+--------------+-------------------+--------------------+-------------+\r\n   1 | toblerone.fritz.box:26257 | v2.1.0-alpha.20180702-1566-g5b184df62c-dirty | 2018-08-15 11:08:32.646778+00:00 | 2018-08-15 11:12:44.703472+00:00 |    true |               13 |                    12 |     22 |                  0 |                      0 |    1547475 |     41825 |     1514268 |            0 |         9087 |             false |              false |     22\r\n   2 | toblerone.fritz.box:26259 | v2.1.0-alpha.20180702-1566-g5b184df62c-dirty | 2018-08-15 11:09:01.224461+00:00 | 2018-08-15 11:12:46.242897+00:00 |    true |                6 |                     6 |     22 |                  0 |                      0 |    1546965 |     62729 |     1492819 |            0 |         9087 |             false |              false |     22\r\n   3 | toblerone.fritz.box:26261 | v2.1.0-alpha.20180702-1566-g5b184df62c-dirty | 2018-08-15 11:10:06.092988+00:00 | 2018-08-15 11:12:48.149831+00:00 |    true |                3 |                     3 |     22 |                  0 |                      0 |    1590941 |     62765 |     1536864 |            0 |         9087 |             false |              false |     22\r\n```"},"comment":{"url":"https://api.github.com/repos/cockroachdb/cockroach/issues/comments/413189512","html_url":"https://github.com/cockroachdb/cockroach/issues/28620#issuecomment-413189512","issue_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/28620","id":413189512,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzE4OTUxMg==","user":{"login":"petermattis","id":6201335,"node_id":"MDQ6VXNlcjYyMDEzMzU=","avatar_url":"https://avatars0.githubusercontent.com/u/6201335?v=4","gravatar_id":"","url":"https://api.github.com/users/petermattis","html_url":"https://github.com/petermattis","followers_url":"https://api.github.com/users/petermattis/followers","following_url":"https://api.github.com/users/petermattis/following{/other_user}","gists_url":"https://api.github.com/users/petermattis/gists{/gist_id}","starred_url":"https://api.github.com/users/petermattis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petermattis/subscriptions","organizations_url":"https://api.github.com/users/petermattis/orgs","repos_url":"https://api.github.com/users/petermattis/repos","events_url":"https://api.github.com/users/petermattis/events{/privacy}","received_events_url":"https://api.github.com/users/petermattis/received_events","type":"User","site_admin":false},"created_at":"2018-08-15T12:58:25Z","updated_at":"2018-08-15T12:58:25Z","author_association":"CONTRIBUTOR","body":"Yep, my fault. PR incoming."}}
{"actor":{"display_login":"petermattis"}}