Robert Stupp created CASSANDRA-8324:
---------------------------------------

             Summary: Cleanup Directories + BlacklistedDirectories classes
                 Key: CASSANDRA-8324
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8324
             Project: Cassandra
          Issue Type: Improvement
            Reporter: Robert Stupp



{{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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to