[ https://issues.apache.org/jira/browse/CASSANDRA-8324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
C. Scott Andreas updated CASSANDRA-8324: ---------------------------------------- Component/s: Core > Cleanup Directories + BlacklistedDirectories classes > ---------------------------------------------------- > > Key: CASSANDRA-8324 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8324 > Project: Cassandra > Issue Type: Improvement > Components: Core > Reporter: Robert Stupp > Priority: Major > > {{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 (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org