cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuki Morishita (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-5900) Setting bloom filter fp chance to 1.0 causes ClassCastExceptions
Date Mon, 19 Aug 2013 20:59:48 GMT

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

Yuki Morishita commented on CASSANDRA-5900:
-------------------------------------------

+1
                
> Setting bloom filter fp chance to 1.0 causes ClassCastExceptions
> ----------------------------------------------------------------
>
>                 Key: CASSANDRA-5900
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5900
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>            Reporter: J.B. Langston
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 1.2.9
>
>         Attachments: 5900.txt
>
>
> In 1.2, we introduced the ability to turn bloom filters off completely by setting fp
chance to 1.0.  It looks like there is a bug with this though. When it's set to 1.0 the following
errors occur because AlwaysPresentFilter is not present in the switch statement here at https://github.com/apache/cassandra/blob/cassandra-1.2/src/java/org/apache/cassandra/utils/FilterFactory.java#L91,
and we default to Murmur3BloomFilter for an unknown type.
> Exception in thread "main" java.lang.ClassCastException: org.apache.cassandra.utils.AlwaysPresentFilter
cannot be cast to org.apache.cassandra.utils.Murmur3BloomFilter
> at org.apache.cassandra.utils.FilterFactory.serializedSize(FilterFactory.java:91)
> at org.apache.cassandra.io.sstable.SSTableReader.getBloomFilterSerializedSize(SSTableReader.java:531)
> at org.apache.cassandra.metrics.ColumnFamilyMetrics$15.value(ColumnFamilyMetrics.java:273)
> at org.apache.cassandra.metrics.ColumnFamilyMetrics$15.value(ColumnFamilyMetrics.java:268)
> at org.apache.cassandra.db.ColumnFamilyStore.getBloomFilterDiskSpaceUsed(ColumnFamilyStore.java:1825)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message