Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-5093

Wrong bloom_filter_fp_chance for newly created CFs with LeveledCompactionStrategy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.2.0
    • None
    • None
    • Low

    Description

      0.1 is supposed to be the default bloom_filter_fp_chance for LeveledCompactionStrategy (and 0.01 for all other strategies).
      However, CFPropDefs#applyToCFMetadata() sets bloom_filter_fp_chance before setting compaction strategy class, so the default bloom_filter_fp_chance is always 0.01 no matter what the compaction strategy is.

      The fix is to move cfm#bloomFilterFpChance() call below cfm#compressionParameters().

      The attached patch also kills dead default consistency level-related code.

      Attachments

        1. 5093.txt
          2 kB
          Aleksey Yeschenko

        Activity

          People

            aleksey Aleksey Yeschenko
            aleksey Aleksey Yeschenko
            Aleksey Yeschenko
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: