cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mahdi Mohammadi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-11587) Cfstats estimate number of keys should return 0 for empty table
Date Wed, 25 May 2016 01:36:12 GMT

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

Mahdi Mohammadi commented on CASSANDRA-11587:
---------------------------------------------

My changes are applied against `trunk`. The issue indicates 2.1.13 as affected version, but
there is no such branch. Should I apply my changes against '2.1.13' tag?

> Cfstats estimate number of keys should return 0 for empty table
> ---------------------------------------------------------------
>
>                 Key: CASSANDRA-11587
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11587
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>         Environment: Cassandra 2.1.13
> Nodeltool
>            Reporter: Jane Deng
>            Assignee: Mahdi Mohammadi
>            Priority: Trivial
>              Labels: lhf
>
> If sstable count is 0, the "estimate number of keys" in cfstats shows -1. 
> {noformat}
> SSTable count: 0
> Number of keys (estimate): -1
> {noformat}
> The initial value of keyCount in SSTableReader is -1. When there is no sstable, nor entry
in memtable, the keyCount isn't increased. Cfstats should have some boundary check and return
0 for this case. 



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

Mime
View raw message