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

initialDirectories passed into ColumnFamilyStore contructor

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 3.0.0 rc2
    • Component/s: None
    • Labels:
      None
    • Severity:
      Low

      Description

      One of the goals of CASSANDRA-8671 was to let compaction strategies write to directories not used by normal tables, and the field ColumnFamilyStore.initialDirectories was added to make sstables in those directories discoverable on cfs instantiation.

      Unfortunately, in my patch, I passed the full list of directories initialDirectories into the ColumnFamilyStore constructor, effectively making these directories usable by any table. The attached patch fixes this, and elaborates on the correct usage of the usage of ColumnFamilyStore.addInitialDirectories in it's comment

        Attachments

        1. 10518-v2.txt
          3 kB
          Blake Eggleston
        2. initialDirectoriesFixV1.patch
          2 kB
          Blake Eggleston

          Activity

            People

            • Assignee:
              bdeggleston Blake Eggleston
              Reporter:
              bdeggleston Blake Eggleston
              Authors:
              Blake Eggleston
              Reviewers:
              Marcus Eriksson
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: