You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "mck (JIRA)" <ji...@apache.org> on 2019/04/07 03:51:00 UTC

[jira] [Comment Edited] (CASSANDRA-14876) Snapshot name merges with keyspace name shown by nodetool listsnapshots for snapshots with long names

    [ https://issues.apache.org/jira/browse/CASSANDRA-14876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16811742#comment-16811742 ] 

mck edited comment on CASSANDRA-14876 at 4/7/19 3:50 AM:
---------------------------------------------------------

LGTM.

Note, this takes the output width (of the header row) from 110 to 134 characters.
And, the same problem will occur if keyspace or table names are longer than 29 characters. A better approach may be to loop through the snapshots first to figure out the required widths for each column.

 But, I reckon the snapshot name will be the column most likely be "too long", so this is a fair enough first step to improve it.


was (Author: michaelsembwever):
LGTM.

Note, this takes the output width (of the header row) from 110 to 134 characters.

> Snapshot name merges with keyspace name shown by nodetool listsnapshots for snapshots with long names
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-14876
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14876
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tool/nodetool
>            Reporter: Aleksandr Sorokoumov
>            Assignee: Aleksandr Sorokoumov
>            Priority: Normal
>             Fix For: 3.0.x
>
>
> If snapshot name is long enough, it will merge  keyspace name and the command output will be inconvenient to read for a {{nodetool}} user, e.g.
> {noformat}
> bin/nodetool listsnapshots
> Snapshot Details:
> Snapshot name       Keyspace name                Column family name           True size          Size on disk
> 1541670390886       system_distributed           parent_repair_history        0 bytes            13 bytes
> 1541670390886       system_distributed           repair_history               0 bytes            13 bytes
> 1541670390886       system_auth                  roles                        0 bytes            4.98 KB
> 1541670390886       system_auth                  role_members                 0 bytes            13 bytes
> 1541670390886       system_auth                  resource_role_permissons_index0 bytes            13 bytes
> 1541670390886       system_auth                  role_permissions             0 bytes            13 bytes
> 1541670390886       system_traces                sessions                     0 bytes            13 bytes
> 1541670390886       system_traces                events                       0 bytes            13 bytes
> 39_characters_long_name_2017-09-05-11-Usystem_distributed           parent_repair_history        0 bytes            13 bytes
> 39_characters_long_name_2017-09-05-11-Usystem_distributed           repair_history               0 bytes            13 bytes
> 39_characters_long_name_2017-09-05-11-Usystem_auth                  roles                        0 bytes            4.98 KB
> 39_characters_long_name_2017-09-05-11-Usystem_auth                  role_members                 0 bytes            13 bytes
> 39_characters_long_name_2017-09-05-11-Usystem_auth                  resource_role_permissons_index0 bytes            13 bytes
> 39_characters_long_name_2017-09-05-11-Usystem_auth                  role_permissions             0 bytes            13 bytes
> 39_characters_long_name_2017-09-05-11-Usystem_traces                sessions                     0 bytes            13 bytes
> 39_characters_long_name_2017-09-05-11-Usystem_traces                events                       0 bytes            13 bytes
> 41_characters_long_name_2017-09-05-11-UTCsystem_distributed           parent_repair_history        0 bytes            13 bytes
> 41_characters_long_name_2017-09-05-11-UTCsystem_distributed           repair_history               0 bytes            13 bytes
> 41_characters_long_name_2017-09-05-11-UTCsystem_auth                  roles                        0 bytes            4.98 KB
> 41_characters_long_name_2017-09-05-11-UTCsystem_auth                  role_members                 0 bytes            13 bytes
> 41_characters_long_name_2017-09-05-11-UTCsystem_auth                  resource_role_permissons_index0 bytes            13 bytes
> 41_characters_long_name_2017-09-05-11-UTCsystem_auth                  role_permissions             0 bytes            13 bytes
> 41_characters_long_name_2017-09-05-11-UTCsystem_traces                sessions                     0 bytes            13 bytes
> 41_characters_long_name_2017-09-05-11-UTCsystem_traces                events                       0 bytes            13 bytes
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org