Details
-
Bug
-
Status: Open
-
Low
-
Resolution: Unresolved
-
None
-
Low
Description
Some classes, such as org.apache.cassandra.db.commitlog.CommitLog create threads in static blocks. Some of these threads then open file-descriptors for the commitlog (and possibly sstables).
... public static final CommitLog instance = CommitLog.construct(); ... private static CommitLog construct() { CommitLog log = new CommitLog(DatabaseDescriptor.getCommitLogLocation(), CommitLogArchiver.construct()); .... return log.start(); } ...
If this occurs in a non-daemon process such as nodetool, or any of the other sstable tools it could prevent a CassandraDaemon from deleting commitlog files.
These threads should only open files automatically if the process is a CassandraDaemon, not if it's a utility.
Attachments
Issue Links
- relates to
-
CASSANDRA-8616 sstable tools may result in commit log segments be written
- Resolved