[
https://issues.apache.org/jira/browse/CASSANDRA-21416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Miklosovic updated CASSANDRA-21416:
------------------------------------------
Attachment: screenshot-1.png
> 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
> Priority: Normal
> Fix For: 7.x
>
> Attachments: screenshot-1.png
>
>
> Sometimes when I kill Cassandra e.g. in IDEA I happen to see this:
> {code}
> DEBUG [StorageServiceShutdownHook] 2026-06-02T08:23:49,346
> StorageService.java:3842 - starting drain process
> 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
> INFO [StorageServiceShutdownHook] 2026-06-02T08:23:49,347
> HintsService.java:269 - Paused hints dispatch
> INFO [StorageServiceShutdownHook] 2026-06-02T08:23:49,349 Server.java:220 -
> Stop listening for CQL clients
> INFO [StorageServiceShutdownHook] 2026-06-02T08:23:49,349 Gossiper.java:1895
> - Announcing shutdown
> INFO [StorageServiceShutdownHook] 2026-06-02T08:23:49,350
> StorageService.java:2226 - Node localhost/127.0.0.1:7000 state jump to
> shutdown
> {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]