Stefan Miklosovic created CASSANDRA-21416:
---------------------------------------------
Summary: java.nio.file.DirectoryNotEmptyException: /tmp/lib
Key: CASSANDRA-21416
URL: https://issues.apache.org/jira/browse/CASSANDRA-21416
Project: Apache Cassandra
Issue Type: Bug
Components: Legacy/Core
Reporter: Stefan Miklosovic
Sometimes when I kill Cassandra e.g. in IDEA I happen to see this:
{code}
WARN [Thread-2] 2026-06-02T08:23:49,345 PathUtils.java:738 - Failed to delete
/tmp/lib on exit
java.io.UncheckedIOException: null
at
org.apache.cassandra.io.util.PathUtils.propagateUnchecked(PathUtils.java:880)
at
org.apache.cassandra.io.util.PathUtils.propagateUnchecked(PathUtils.java:865)
at org.apache.cassandra.io.util.PathUtils.delete(PathUtils.java:280)
at
org.apache.cassandra.io.util.PathUtils$DeleteOnExit.run(PathUtils.java:734)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.nio.file.DirectoryNotEmptyException: /tmp/lib
at
java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:247)
at
java.base/sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:105)
at java.base/java.nio.file.Files.delete(Files.java:1142)
at org.apache.cassandra.io.util.PathUtils.delete(PathUtils.java:275)
... 2 common frames omitted
{code}
I think I saw at least once that this was happening without IDEA.
When I list /tmp/lib after it is turned off, that dir is empty.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]