[
https://issues.apache.org/jira/browse/CASSANDRA-14650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16596382#comment-16596382
]
Maciej Lasyk commented on CASSANDRA-14650:
------------------------------------------
Ok, after longer investigation stracing showed wrong mappings in Docker
containers; so actually there is no problem, simply Java tried to create tmp-*
file but couldn't as target directory didn't exists due to wrong Docker mounts.
> sstablerepairedset failing looking for tmp-lb sstables part
> -----------------------------------------------------------
>
> Key: CASSANDRA-14650
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14650
> Project: Cassandra
> Issue Type: Bug
> Components: Tools
> Reporter: Maciej Lasyk
> Priority: Major
>
> While moving back from incremental repairs to full repairs (C* 2.2.12) we're
> setting all our sstables as "unrepaired" just like described here:
> [https://docs.datastax.com/en/cassandra/2.1/cassandra/tools/toolsSSTableRepairedSet.html]
> So basically we're running sstablerepairedset against sstables. First we're
> creating sstables list:
>
> {code:java}
> find "/var/lib/cassandra/data/keyspace/" -iname "*Data.db*" >
> /var/lib/cassandra/sstables.txt{code}
> and afterwards:
>
> {code:java}
> /usr/bin/sstablerepairedset --really-set --is-unrepaired -f
> /var/lib/cassandra/sstables.txt{code}
> Unfortunately, operation is unfinished w/error:
> {code:java}
> root@host $ /usr/bin/sstablerepairedset --really-set --is-unrepaired -f
> /var/lib/cassandra/sstables.txt
> Exception in thread "main" java.io.FileNotFoundException:
> /var/lib/cassandra/data/keyspace/some-cf/tmp-lb-74-big-Statistics.db (No such
> file or directory)
> at java.io.FileOutputStream.open0(Native Method)
> at java.io.FileOutputStream.open(FileOutputStream.java:270)
> at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
> at java.io.FileOutputStream.<init>(FileOutputStream.java:101)
> at
> org.apache.cassandra.io.sstable.metadata.MetadataSerializer.rewriteSSTableMetadata(MetadataSerializer.java:155)
> at
> org.apache.cassandra.io.sstable.metadata.MetadataSerializer.mutateRepairedAt(MetadataSerializer.java:148)
> at
> org.apache.cassandra.tools.SSTableRepairedAtSetter.main(SSTableRepairedAtSetter.java:92){code}
> Afaik tmp-part of sstable is created for a compaction time. There is no
> single "tmp" part of sstables in our whole C* datadir.
> Do you know any workaround for having those sstables marked as unrepaired?
>
> Cheers,
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]