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

Thibaut commented on CASSANDRA-2076:
------------------------------------

This might be related:

Two other nodes (still running) also show up the "The provided key was not UTF8 
encoded." error in the log.

I have never seen this error in 0.7.0


ERROR [MutationStage:19] 2011-01-30 21:36:16,951 
DebuggableThreadPoolExecutor.java (line 103) Error in ThreadPoolExecutor
java.lang.RuntimeException: java.lang.RuntimeException: The provided key was 
not UTF8 encoded.
        at 
org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
        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.lang.RuntimeException: The provided key was not UTF8 encoded.
        at 
org.apache.cassandra.dht.OrderPreservingPartitioner.getToken(OrderPreservingPartitioner.java:159)
        at 
org.apache.cassandra.dht.OrderPreservingPartitioner.decorateKey(OrderPreservingPartitioner.java:44)
        at org.apache.cassandra.db.Table.apply(Table.java:406)
        at org.apache.cassandra.db.RowMutation.apply(RowMutation.java:190)
        at 
org.apache.cassandra.service.StorageProxy$2.runMayThrow(StorageProxy.java:288)
        at 
org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
        ... 3 more
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.FBUtilities.decodeToUTF8(FBUtilities.java:403)
        at 
org.apache.cassandra.dht.OrderPreservingPartitioner.getToken(OrderPreservingPartitioner.java:155)
        ... 8 more
ERROR [MutationStage:19] 2011-01-30 21:36:16,991 AbstractCassandraDaemon.java 
(line 119) Fatal exception in thread Thread[MutationStage:19,5,main]
java.lang.RuntimeException: java.lang.RuntimeException: The provided key was 
not UTF8 encoded.
        at 
org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
        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.lang.RuntimeException: The provided key was not UTF8 encoded.
        at 
org.apache.cassandra.dht.OrderPreservingPartitioner.getToken(OrderPreservingPartitioner.java:159)
        at 
org.apache.cassandra.dht.OrderPreservingPartitioner.decorateKey(OrderPreservingPartitioner.java:44)
        at org.apache.cassandra.db.Table.apply(Table.java:406)
        at org.apache.cassandra.db.RowMutation.apply(RowMutation.java:190)
        at 
org.apache.cassandra.service.StorageProxy$2.runMayThrow(StorageProxy.java:288)
        at 
org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
        ... 3 more
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.FBUtilities.decodeToUTF8(FBUtilities.java:403)
        at 
org.apache.cassandra.dht.OrderPreservingPartitioner.getToken(OrderPreservingPartitioner.java:155)
        ... 8 more
 WARN [ScheduledTasks:1] 2011-01-30 21:36:21,450 MessagingService.java (line 
506) Dropped 8 MUTATION messages in the last 5000ms





> Not starting due to Invalid saved cache
> ---------------------------------------
>
>                 Key: CASSANDRA-2076
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2076
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: linux
>            Reporter: Thibaut
>            Priority: Minor
>             Fix For: 0.7.2
>
>
> This occured on two nodes on me (running 0.7.1 from svn)
> One node was killed by the kernel due to a OOM and the other node was haning 
> and I had to kill it manually with kill -9 (kill didn't work). (maybe these 
> were faulty hardware nodes, I don't know)
> The saved_cache was corrupt afterwards and I couldn't start the nodes. 
> After deleting the saved_caches directory I could start the nodes again. 
> Instead of not starting when an error occurs, cassandra could simply delete 
> the errornous file and continue to start?
>  INFO 22:31:11,570 reading saved cache
> /hd1/cassandra_md5/saved_caches/table_attributes-table_attributes-KeyCache
> ERROR 22:31:11,595 Exception encountered during startup.
> java.lang.RuntimeException: The provided key was not UTF8 encoded.
>        at 
> org.apache.cassandra.dht.OrderPreservingPartitioner.getToken(OrderPreservingPartitioner.java:159)
>        at 
> org.apache.cassandra.dht.OrderPreservingPartitioner.decorateKey(OrderPreservingPartitioner.java:44)
>        at 
> org.apache.cassandra.db.ColumnFamilyStore.readSavedCache(ColumnFamilyStore.java:281)
>        at 
> org.apache.cassandra.db.ColumnFamilyStore.<init>(ColumnFamilyStore.java:218)
>        at 
> org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:458)
>        at 
> org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:440)
>        at org.apache.cassandra.db.Table.initCf(Table.java:360)
>        at org.apache.cassandra.db.Table.<init>(Table.java:290)
>        at org.apache.cassandra.db.Table.open(Table.java:107)
>        at 
> org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:167)
>        at 
> org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:312)
>        at 
> org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:81)
> 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.FBUtilities.decodeToUTF8(FBUtilities.java:403)
>        at 
> org.apache.cassandra.dht.OrderPreservingPartitioner.getToken(OrderPreservingPartitioner.java:155)
>        ... 11 more
> Exception encountered during startup.
> java.lang.RuntimeException: The provided key was not UTF8 encoded.
>        at 
> org.apache.cassandra.dht.OrderPreservingPartitioner.getToken(OrderPreservingPartitioner.java:159)
>        at 
> org.apache.cassandra.dht.OrderPreservingPartitioner.decorateKey(OrderPreservingPartitioner.java:44)
>        at 
> org.apache.cassandra.db.ColumnFamilyStore.readSavedCache(ColumnFamilyStore.java:281)
>        at 
> org.apache.cassandra.db.ColumnFamilyStore.<init>(ColumnFamilyStore.java:218)
>        at 
> org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:458)
>        at 
> org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:440)
>        at org.apache.cassandra.db.Table.initCf(Table.java:360)
>        at org.apache.cassandra.db.Table.<init>(Table.java:290)
>        at org.apache.cassandra.db.Table.open(Table.java:107)
>        at 
> org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:167)
>        at 
> org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:312)
>        at 
> org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:81)
> 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.FBUtilities.decodeToUTF8(FBUtilities.java:403)
>        at 
> org.apache.cassandra.dht.OrderPreservingPartitioner.getToken(OrderPreservingPartitioner.java:155)
>        ... 11 more

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to