Details
-
Improvement
-
Status: Open
-
Normal
-
Resolution: Unresolved
-
None
-
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.