On 03/19/2013 11:22 AM, 杨辉强 wrote:
Hi, all:

   I am a beginner of cassandra. I have a four node cassandra group.
   One of my cassandra group node had been running for a week. Recently because of too much writing and reading, it crashed.
I want to restart the node.
   While I start up cassandra, it ends up with throwing exception as follow every time:
   java.lang.RuntimeException: The provided key was not UTF8 encoded.
    at org.apache.cassandra.dht.OrderPreservingPartitioner.getToken(OrderPreservingPartitioner.java:170)
    at org.apache.cassandra.dht.OrderPreservingPartitioner.decorateKey(OrderPreservingPartitioner.java:42)
    at org.apache.cassandra.db.Table.apply(Table.java:380)
    at org.apache.cassandra.db.Table.apply(Table.java:354)
    at org.apache.cassandra.db.commitlog.CommitLogReplayer$1.runMayThrow(CommitLogReplayer.java:260)
    at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)


  I have googled and read the archive. But I can't find answer, please help me. Thank you very much.

More crash log:

ERROR [main] 2013-03-18 18:02:47,095 CassandraDaemon.java (line 414) Exception encountered during startup
java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: The provided key was not UTF8 encoded.
        at org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:377)
        at org.apache.cassandra.utils.FBUtilities.waitOnFutures(FBUtilities.java:366)
        at org.apache.cassandra.db.commitlog.CommitLogReplayer.blockForWrites(CommitLogReplayer.java:106)
        at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:147)
        at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:126)
        at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:268)
        at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:397)
        at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:440)
Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: The provided key was not UTF8 encoded.
        at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
        at java.util.concurrent.FutureTask.get(FutureTask.java:83)
        at org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:373)
        ... 7 more
Caused by: java.lang.RuntimeException: The provided key was not UTF8 encoded.
        at org.apache.cassandra.dht.OrderPreservingPartitioner.getToken(OrderPreservingPartitioner.java:170)
        at org.apache.cassandra.dht.OrderPreservingPartitioner.decorateKey(OrderPreservingPartitioner.java:42)
        at org.apache.cassandra.db.Table.apply(Table.java:380)
        at org.apache.cassandra.db.Table.apply(Table.java:354)
        at org.apache.cassandra.db.commitlog.CommitLogReplayer$1.runMayThrow(CommitLogReplayer.java:260)
        at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.nio.charset.MalformedInputException: Input length = 1
        at java.nio.charset.CoderResult.throwException(CoderResult.java:260)
        at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:781)
        at org.apache.cassandra.utils.ByteBufferUtil.string(ByteBufferUtil.java:167)
        at org.apache.cassandra.utils.ByteBufferUtil.string(ByteBufferUtil.java:124)
        at org.apache.cassandra.dht.OrderPreservingPartitioner.getToken(OrderPreservingPartitioner.java:166)
        ... 11 more