[ 
https://issues.apache.org/jira/browse/CASSANDRA-8926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

DOAN DuyHai updated CASSANDRA-8926:
-----------------------------------
    Description: 
For some table with huge number of partitions, *nodetool cfstats* returns 
negative display:

{code}
Number of keys (estimate): -2034463513
{code}

The simple reason is the counter used in Nodetool is an *int*, it should be a 
*long*

I attach a trivial fix

  was:
For some table with huge number of partitions, *nodetool cfstats* returns 
negative display:

<pre>
Number of keys (estimate): -2034463513
</pre>

The simple reason is the counter used in Nodetool is an *int*, it should be a 
*long*

I attach a trivial fix


> Cfstats estimate number of keys should be stored as long, not int
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-8926
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8926
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>         Environment: Cassandra 2.1.3
> Nodetool
>            Reporter: DOAN DuyHai
>            Priority: Trivial
>         Attachments: patch.diff
>
>
> For some table with huge number of partitions, *nodetool cfstats* returns 
> negative display:
> {code}
> Number of keys (estimate): -2034463513
> {code}
> The simple reason is the counter used in Nodetool is an *int*, it should be a 
> *long*
> I attach a trivial fix



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

Reply via email to