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

Do not expose compaction strategy index publicly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 3.11.2, 4.0-alpha1, 4.0
    • None
    • None
    • Normal

    Description

      Before CASSANDRA-13215 we used the compaction strategy index to decide which disk to place a given sstable, but now we can get this directly from the disk boundary manager and keep the compaction strategy index internal only.

      This will ensure external consumers will use a consistent DiskBoundaries object to perform operations on multiple disks, rather than risking getting inconsistent indexes if the compaction strategy indexes change between successive calls to CSM.getCompactionStrategyIndex.

      Attachments

        1. 3.11-14082-testall.png
          21 kB
          Paulo Motta
        2. trunk-14082-testall.png
          38 kB
          Paulo Motta
        3. trunk-14082-dtest.png
          93 kB
          Paulo Motta
        4. 3.11-14082-dtest.png
          65 kB
          Paulo Motta

        Issue Links

          Activity

            People

              pauloricardomg Paulo Motta
              pauloricardomg Paulo Motta
              Paulo Motta
              Marcus Eriksson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: