cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuki Morishita (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-10132) sstablerepairedset throws exception while loading metadata
Date Mon, 24 Aug 2015 14:01:46 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-10132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14709334#comment-14709334
] 

Yuki Morishita commented on CASSANDRA-10132:
--------------------------------------------

Here's full stack trace:

{code}
ERROR [HintsDispatcher:1] 2015-08-24 08:16:45,858 CassandraDaemon.java:192 - Exception in
thread Thread[HintsDispatcher:1,1,main]
java.lang.RuntimeException: java.nio.file.NoSuchFileException: /home/yuki/Developments/workspace/cassandra/data/hints/d2b92799-086b-4daa-8e9d-13fbcfb31868-1440422185762-1.hints
	at org.apache.cassandra.io.util.ChannelProxy.openChannel(ChannelProxy.java:55) ~[main/:na]
	at org.apache.cassandra.io.util.ChannelProxy.<init>(ChannelProxy.java:66) ~[main/:na]
	at org.apache.cassandra.io.util.RandomAccessReader$RandomAccessReaderWithChannel.<init>(RandomAccessReader.java:89)
~[main/:na]
	at org.apache.cassandra.io.util.RandomAccessReader.open(RandomAccessReader.java:108) ~[main/:na]
	at org.apache.cassandra.hints.HintsReader.open(HintsReader.java:78) ~[main/:na]
	at org.apache.cassandra.hints.HintsDispatcher.create(HintsDispatcher.java:71) ~[main/:na]
	at org.apache.cassandra.hints.HintsDispatchExecutor$DispatchHintsTask.dispatch(HintsDispatchExecutor.java:178)
~[main/:na]
	at org.apache.cassandra.hints.HintsDispatchExecutor$DispatchHintsTask.dispatch(HintsDispatchExecutor.java:159)
~[main/:na]
	at org.apache.cassandra.hints.HintsDispatchExecutor$DispatchHintsTask.run(HintsDispatchExecutor.java:138)
~[main/:na]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_51]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_51]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_51]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_51]
	at java.lang.Thread.run(Thread.java:745) [na:1.8.0_51]
Caused by: java.nio.file.NoSuchFileException: /home/yuki/Developments/workspace/cassandra/data/hints/d2b92799-086b-4daa-8e9d-13fbcfb31868-1440422185762-1.hints
	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) ~[na:1.8.0_51]
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[na:1.8.0_51]
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[na:1.8.0_51]
	at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177) ~[na:1.8.0_51]
	at java.nio.channels.FileChannel.open(FileChannel.java:287) ~[na:1.8.0_51]
	at java.nio.channels.FileChannel.open(FileChannel.java:335) ~[na:1.8.0_51]
	at org.apache.cassandra.io.util.ChannelProxy.openChannel(ChannelProxy.java:51) ~[main/:na]
	... 13 common frames omitted
{code}

Using my branch (https://github.com/yukim/cassandra/tree/10132) and the following dtest run
will throw error.

{code}
nosetests-2.7 incremental_repair_test.py:TestIncRepair.sstable_repairedset_test
{code}


> sstablerepairedset throws exception while loading metadata
> ----------------------------------------------------------
>
>                 Key: CASSANDRA-10132
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10132
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Yuki Morishita
>            Assignee: Yuki Morishita
>             Fix For: 3.0.0 rc1
>
>
> {{sstablerepairedset}} displays exception trying to load schema through DatabaseDescriptor.
> {code}
> $ ./tools/bin/sstablerepairedset --really-set --is-repaired ~/.ccm/3.0/node1/data/keyspace1/standard1-2c0b226046aa11e596f58106a0d438e8/ma-1-big-Data.db
> 14:42:36.714 [main] DEBUG o.a.c.i.s.m.MetadataSerializer - Mutating /home/yuki/.ccm/3.0/node1/data/keyspace1/standard1-2c0b226046aa11e596f58106a0d438e8/ma-1-big-Statistics.db
to repairedAt time 1440013248000
> 14:42:36.721 [main] DEBUG o.a.c.i.s.m.MetadataSerializer - Load metadata for /home/yuki/.ccm/3.0/node1/data/keyspace1/standard1-2c0b226046aa11e596f58106a0d438e8/ma-1-big
> Exception in thread "main" java.lang.ExceptionInInitializerError
>         at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:123)
>         at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:110)
>         at org.apache.cassandra.utils.memory.BufferPool.<clinit>(BufferPool.java:51)
>         at org.apache.cassandra.io.util.RandomAccessReader.allocateBuffer(RandomAccessReader.java:76)
>         at org.apache.cassandra.io.util.RandomAccessReader.<init>(RandomAccessReader.java:58)
>         at org.apache.cassandra.io.util.RandomAccessReader$RandomAccessReaderWithChannel.<init>(RandomAccessReader.java:89)
>         at org.apache.cassandra.io.util.RandomAccessReader.open(RandomAccessReader.java:108)
>         at org.apache.cassandra.io.sstable.metadata.MetadataSerializer.deserialize(MetadataSerializer.java:91)
>         at org.apache.cassandra.io.sstable.metadata.MetadataSerializer.mutateRepairedAt(MetadataSerializer.java:143)
>         at org.apache.cassandra.tools.SSTableRepairedAtSetter.main(SSTableRepairedAtSetter.java:86)
> Caused by: org.apache.cassandra.exceptions.ConfigurationException: Expecting URI in variable:
[cassandra.config]. Found[cassandra.yaml]. Please prefix the file with [file:///] for local
files and [file://<server>/] for remote files. If you are executing this from an external
tool, it needs to set Config.setClientMode(true) to avoid loading configuration.
>         at org.apache.cassandra.config.YamlConfigurationLoader.getStorageConfigURL(YamlConfigurationLoader.java:78)
>         at org.apache.cassandra.config.YamlConfigurationLoader.<clinit>(YamlConfigurationLoader.java:92)
>         ... 10 more
> {code}
> MetadataSerializer uses RandomAccessReader which allocates buffer through BufferPool.
BufferPool gets its settings from DatabaseDescriptor and it won't work in offline tool.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message