[
https://issues.apache.org/jira/browse/CASSANDRA-14162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17376804#comment-17376804
]
Stefan Miklosovic edited comment on CASSANDRA-14162 at 7/7/21, 7:50 PM:
------------------------------------------------------------------------
[~brandon.williams] would you mind to review please?
[https://github.com/apache/cassandra/pull/1103/files]
{code:java}
[21:28:09 ~]$ docker-shell-master-nodetool compactionstats -H
pending tasks: 3
id compaction type keyspace table
completed total unit progress
54a026b0-df58-11eb-a591-43fc063264b7 Compaction keyspace1 standard1 244.39
MB 709.18 MB bytes 34.46%
1b9c5b40-df58-11eb-a591-43fc063264b7 Compaction keyspace1 standard1 340.16
MB 710.4 MB bytes 47.88%
Active compaction remaining time : 0h13m55s
[21:28:12 ~]$ docker-shell-master-nodetool compactionhistory
Compaction History:
id keyspace_name columnfamily_name
compacted_at bytes_in bytes_out rows_merged
dddae0b0-df57-11eb-a591-43fc063264b7 system_schema tables
2021-07-07T21:16:44.219 3396 2716 {1:7, 4:1}
ddd0a780-df57-11eb-a591-43fc063264b7 system_schema columns
2021-07-07T21:16:44.152 6300 5798 {1:7, 4:1}
dd206a50-df57-11eb-a591-43fc063264b7 system_schema keyspaces
2021-07-07T21:16:42.997 669 381 {1:7, 4:1}
ce15b510-df57-11eb-a591-43fc063264b7 system sstable_activity
2021-07-07T21:16:17.761 1492 354 {1:62, 2:6}
cdd8fa30-df57-11eb-a591-43fc063264b7 system local
2021-07-07T21:16:17.363 5378 5160 {4:1}
cdcec100-df57-11eb-a591-43fc063264b7 system size_estimates
2021-07-07T21:16:17.296 46128 36268 {1:4, 2:1, 3:1}
cdaf5220-df57-11eb-a591-43fc063264b7 system_auth
resource_role_permissons_index 2021-07-07T21:16:17.090 611 304 {1:4,
2:4, 3:3}
cd9672f0-df57-11eb-a591-43fc063264b7 system_auth role_permissions
2021-07-07T21:16:16.927 1013 522 {1:1, 4:1}
cbe3b9e0-df57-11eb-a591-43fc063264b7 system_schema views
2021-07-07T21:16:14.078 153 99 {1:3, 2:1}
[21:49:44 ~]$ docker-shell-master-nodetool listsnapshots
Snapshot Details:
Snapshot name Keyspace name Column family name True size Size
on disk
1625686746556 system_distributed parent_repair_history 0 bytes 13
bytes
1625686746556 system_distributed repair_history 0 bytes 13
bytes
1625686746556 keyspace1 counter1 0 bytes 847
bytes
1625686746556 keyspace1 standard1 1.5 GB 2.31
GB
1625686746556 test test 0 bytes 872
bytes
1625686746556 system_auth roles 0 bytes 5.14
KB
1625686746556 system_auth role_members 0 bytes 13
bytes
1625686746556 system_auth resource_role_permissons_index 0 bytes 15.6
KB
1625686746556 system_auth role_permissions 0 bytes 15.75
KB
1625686746556 system_traces sessions 0 bytes 13
bytes
1625686746556 system_traces events 0 bytes 13
bytes Total TrueDiskSpaceUsed: 1.5 GB
{code}
was (Author: stefan.miklosovic):
[~brandon.williams] would you mind to review please?
[https://github.com/apache/cassandra/pull/1103/files]
{code:java}
[21:28:09 ~]$ docker-shell-master-nodetool compactionstats -H
pending tasks: 3
id compaction type keyspace table
completed total unit progress
54a026b0-df58-11eb-a591-43fc063264b7 Compaction keyspace1 standard1 244.39
MB 709.18 MB bytes 34.46%
1b9c5b40-df58-11eb-a591-43fc063264b7 Compaction keyspace1 standard1 340.16
MB 710.4 MB bytes 47.88%
Active compaction remaining time : 0h13m55s
[21:28:12 ~]$ docker-shell-master-nodetool compactionhistory
Compaction History:
id keyspace_name columnfamily_name
compacted_at bytes_in bytes_out rows_merged
dddae0b0-df57-11eb-a591-43fc063264b7 system_schema tables
2021-07-07T21:16:44.219 3396 2716 {1:7, 4:1}
ddd0a780-df57-11eb-a591-43fc063264b7 system_schema columns
2021-07-07T21:16:44.152 6300 5798 {1:7, 4:1}
dd206a50-df57-11eb-a591-43fc063264b7 system_schema keyspaces
2021-07-07T21:16:42.997 669 381 {1:7, 4:1}
ce15b510-df57-11eb-a591-43fc063264b7 system sstable_activity
2021-07-07T21:16:17.761 1492 354 {1:62, 2:6}
cdd8fa30-df57-11eb-a591-43fc063264b7 system local
2021-07-07T21:16:17.363 5378 5160 {4:1}
cdcec100-df57-11eb-a591-43fc063264b7 system size_estimates
2021-07-07T21:16:17.296 46128 36268 {1:4, 2:1, 3:1}
cdaf5220-df57-11eb-a591-43fc063264b7 system_auth
resource_role_permissons_index 2021-07-07T21:16:17.090 611 304 {1:4,
2:4, 3:3}
cd9672f0-df57-11eb-a591-43fc063264b7 system_auth role_permissions
2021-07-07T21:16:16.927 1013 522 {1:1, 4:1}
cbe3b9e0-df57-11eb-a591-43fc063264b7 system_schema views
2021-07-07T21:16:14.078 153 99 {1:3, 2:1}
{code}
> Backport 7950 (Output of nodetool compactionstats and compactionhistory does
> not work well with long keyspace and column family names)
> --------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-14162
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14162
> Project: Cassandra
> Issue Type: Bug
> Components: Legacy/Tools
> Reporter: Kurt Greaves
> Assignee: Stefan Miklosovic
> Priority: Low
> Fix For: 3.0.x
>
> Attachments: 14162-3.0.patch, Screenshot from 2018-01-11
> 01-02-02.png, Screenshot from 2018-01-11 01-02-46.png, Screenshot from
> 2018-01-11 01-02-51.png
>
>
> Colleagues have had issues with output of listsnapshots/compactionstats
> because of things with really long names. Mostly cosmetic but I see no reason
> we shouldn't backport CASSANDRA-7950 to 3.0. It's practically a bugfix. I've
> attached a patch and a bunch of images to show the relevant commands working
> as intended after applying the patch.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]