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

Cleanup Directories + BlacklistedDirectories classes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • None
    • Legacy/Core
    • None

    Description

      Directories.getLocationForDisk(DataDirectory) uses File.getAbsolutePath().startsWith(...) to return the sstable directory for a data directory. This may return wrong result if two data directory names are similar (e.g. /dataDir1 and /dataDir1a).

      BlacklistedDirectories uses two sets that contain blacklisted directories. These could be replaced with two AtomicBoolean fields in Directories.DataDirectory.

      Goal of this ticket is to reduce the number of string operations, fix the possible wrong result mentioned above and to refactor the blacklisted directories.

      Attachments

        Activity

          People

            Unassigned Unassigned
            snazy Robert Stupp
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: