cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kurt Greaves (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CASSANDRA-14166) sstabledump tries to delete a file
Date Thu, 08 Mar 2018 01:51:01 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-14166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kurt Greaves resolved CASSANDRA-14166.
--------------------------------------
       Resolution: Fixed
    Fix Version/s: 3.11.3
                   3.0.17
                   4.0

> sstabledump tries to delete a file
> ----------------------------------
>
>                 Key: CASSANDRA-14166
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14166
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>            Reporter: Python_Max
>            Assignee: Kurt Greaves
>            Priority: Major
>             Fix For: 4.0, 3.0.17, 3.11.3
>
>
> Directory /var/lib/cassandra/data/<keyspace>/<table> has cassandra:cassandra
owner.
> An error happens when sstabledump executed on file in that directory by regular user:
> {code:java}
> $ sstabledump mc-56801-big-Data.db
> Exception in thread "main" FSWriteError in /var/lib/cassandra/data/<keyspace>/<table>/mc-56801-big-Summary.db
>         at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:142)
>         at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:159)
>         at org.apache.cassandra.io.sstable.format.SSTableReader.saveSummary(SSTableReader.java:935)
>         at org.apache.cassandra.io.sstable.format.SSTableReader.saveSummary(SSTableReader.java:920)
>         at org.apache.cassandra.io.sstable.format.SSTableReader.load(SSTableReader.java:788)
>         at org.apache.cassandra.io.sstable.format.SSTableReader.load(SSTableReader.java:731)
>         at org.apache.cassandra.io.sstable.format.SSTableReader.open(SSTableReader.java:516)
>         at org.apache.cassandra.io.sstable.format.SSTableReader.openNoValidation(SSTableReader.java:396)
>         at org.apache.cassandra.tools.SSTableExport.main(SSTableExport.java:191)
> Caused by: java.nio.file.AccessDeniedException: /var/lib/cassandra/data/<keyspace>/<table>/mc-56801-big-Summary.db
>         at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
>         at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
>         at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
>         at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244)
>         at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
>         at java.nio.file.Files.delete(Files.java:1126)
>         at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:136)
>         ... 8 more
> {code}
> I have changed bloom_filter_fp_chance for that table couple months ago, so I believe
that's the reason why SSTableReader wants to recreate summary file. But when used in sstabledump
it should not try to modify / delete any files.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message