Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
Normal
Description
Steps:
- Create a bad disk via device mapper
- Specify good disk and bad disk is data directory
- Set disk_failure_policy to best_effort in cassandra.yaml
- Start node
Expected:
Attempts to create system directories to fail (as expected) on bad disk, and have it added to blacklisted directories.
Actual:
Node start up aborts due to uncaught error:
FSWriteError in /mnt/bad_disk/system_traces/sessions at org.apache.cassandra.io.util.FileUtils.createDirectory(FileUtils.java:258) at org.apache.cassandra.db.Directories.<init>(Directories.java:104) at org.apache.cassandra.db.Directories.create(Directories.java:90) at org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:404) at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:227) at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:393) at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:436) Caused by: java.io.IOException: Failed to mkdirs /mnt/bad_disk/system_traces/sessions ... 7 more