cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anuja Mandlecha (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-7950) Output of nodetool compactionstats and compactionhistory does not work well with long keyspace and column family names.
Date Tue, 20 Jan 2015 12:15:34 GMT

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

Anuja Mandlecha commented on CASSANDRA-7950:
--------------------------------------------

Hello,
There are few points to be considered here: 
1. The max char limit for a keyspace and cf name in CQL is 48 chars each.
2. the format specifiers mentioned in nodetool compactionhistory output in code is having
19 chars for keyspace and 29 chars for cfname (%-19s%-29s). Similar is the case with compactionstats
command.
Hence if the keyspace or cfnames exceed above these limits, there will not be any space between
it's value and the next column value.
To resolve this issue, we can have two approaches:
1. Keep existing format specifiers and add a tab after each column.
2. Remove existing format specifiers and display complete column values with only seperated
by tab.
I would suggest approach 1 so as to maintain human readability and make the output parsable.


> Output of nodetool compactionstats and compactionhistory does not work well with long
keyspace and column family names.  
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-7950
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7950
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: CentOS 5, 64bit, Oracle JDK 7, DSE
>            Reporter: Eugene
>            Priority: Minor
>              Labels: lhf
>             Fix For: 2.0.12
>
>         Attachments: nodetool-examples.txt
>
>
> When running these commands:
> nodetool compactionstats
> nodetool compactionhistory
> The output can be difficult to grok due to long keyspace names, column family names,
and long values.  I have attached an example.
> It's difficult for both humans and grep/sed/awk/perl to read.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message