You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Alex Liu (JIRA)" <ji...@apache.org> on 2012/06/26 18:54:08 UTC
[jira] [Created] (CASSANDRA-4378) MalformedInputException running
cleanup on solr KS 'Logging', we should catch the exception
Alex Liu created CASSANDRA-4378:
-----------------------------------
Summary: MalformedInputException running cleanup on solr KS 'Logging', we should catch the exception
Key: CASSANDRA-4378
URL: https://issues.apache.org/jira/browse/CASSANDRA-4378
Project: Cassandra
Issue Type: Bug
Affects Versions: 1.1.0, 1.0.10, 1.0.9, 1.0.8
Reporter: Alex Liu
Fix For: 1.1.2
The following occurred on 10 node cluster which we were running rebalance. Nick said it appeared to be related to running cleanup on a solr secondary index cf, and with this cluster it occurs when running cleanup on the Logging KS. Please note that we did run the solr_logging demo on this data prior to cleanup.
The exception java.nio.charset.MalformedInputException: Input length = 1 is caused by incompatible data format.
It comes from doCleanupCompaction method of CompactionManager.java from C*
try
{ cfs.indexManager.deleteFromIndexes(row.getKey(), indexedColumnsInRow); }
finally
{ Table.switchLock.readLock().unlock(); }
it looks like something wrong with the key data in row.getKey()
ERROR [CompactionExecutor:7] 2012-04-05 03:13:11,550 AbstractCassandraDaemon.java (line 139) Fatal exception in thread Thread[CompactionExecutor:7,1,main]
java.lang.RuntimeException: java.nio.charset.MalformedInputException: Input length = 1
at com.datastax.bdp.cassandra.index.solr.SolrSecondaryIndex.deleteFromIndex(SolrSecondaryIndex.java:412)
at org.apache.cassandra.db.index.SecondaryIndexManager.deleteFromIndexes(SecondaryIndexManager.java:488)
at org.apache.cassandra.db.compaction.CompactionManager.doCleanupCompaction(CompactionManager.java:759)
at org.apache.cassandra.db.compaction.CompactionManager.access$300(CompactionManager.java:64)
at org.apache.cassandra.db.compaction.CompactionManager$5.perform(CompactionManager.java:242)
at org.apache.cassandra.db.compaction.CompactionManager$2.call(CompactionManager.java:183)
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:164)
at org.apache.cassandra.utils.ByteBufferUtil.string(ByteBufferUtil.java:121)
at com.datastax.bdp.cassandra.index.solr.SolrSecondaryIndex.deleteFromIndex(SolrSecondaryIndex.java:405)
... 10 more
Can we catch the exception here, so the program can continue running.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CASSANDRA-4378) MalformedInputException running
cleanup on solr KS 'Logging', we should catch the exception
Posted by "Alex Liu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401591#comment-13401591 ]
Alex Liu commented on CASSANDRA-4378:
-------------------------------------
we catch the exception thrown from deleteFromIndex(SolrSecondaryIndex.java:412) at solr side in latest version. For safe side, C* could catch the unexpected exception here, so the daemon continues running in case otherwise the daemon could stop because the exception(correct me if I am wrong here).
we can close this bug if you think it's not worth.
> MalformedInputException running cleanup on solr KS 'Logging', we should catch the exception
> -------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-4378
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4378
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 1.0.8, 1.0.9, 1.0.10, 1.1.0
> Reporter: Alex Liu
> Fix For: 1.1.2
>
>
> The following occurred on 10 node cluster which we were running rebalance. Nick said it appeared to be related to running cleanup on a solr secondary index cf, and with this cluster it occurs when running cleanup on the Logging KS. Please note that we did run the solr_logging demo on this data prior to cleanup.
> The exception java.nio.charset.MalformedInputException: Input length = 1 is caused by incompatible data format.
> It comes from doCleanupCompaction method of CompactionManager.java from C*
> try
> { cfs.indexManager.deleteFromIndexes(row.getKey(), indexedColumnsInRow); }
> finally
> { Table.switchLock.readLock().unlock(); }
> it looks like something wrong with the key data in row.getKey()
> ERROR [CompactionExecutor:7] 2012-04-05 03:13:11,550 AbstractCassandraDaemon.java (line 139) Fatal exception in thread Thread[CompactionExecutor:7,1,main]
> java.lang.RuntimeException: java.nio.charset.MalformedInputException: Input length = 1
> at com.datastax.bdp.cassandra.index.solr.SolrSecondaryIndex.deleteFromIndex(SolrSecondaryIndex.java:412)
> at org.apache.cassandra.db.index.SecondaryIndexManager.deleteFromIndexes(SecondaryIndexManager.java:488)
> at org.apache.cassandra.db.compaction.CompactionManager.doCleanupCompaction(CompactionManager.java:759)
> at org.apache.cassandra.db.compaction.CompactionManager.access$300(CompactionManager.java:64)
> at org.apache.cassandra.db.compaction.CompactionManager$5.perform(CompactionManager.java:242)
> at org.apache.cassandra.db.compaction.CompactionManager$2.call(CompactionManager.java:183)
> 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:164)
> at org.apache.cassandra.utils.ByteBufferUtil.string(ByteBufferUtil.java:121)
> at com.datastax.bdp.cassandra.index.solr.SolrSecondaryIndex.deleteFromIndex(SolrSecondaryIndex.java:405)
> ... 10 more
> Can we catch the exception here, so the program can continue running.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CASSANDRA-4378) MalformedInputException running
cleanup on solr KS 'Logging', we should catch the exception
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401529#comment-13401529 ]
Jonathan Ellis commented on CASSANDRA-4378:
-------------------------------------------
What would we do if we did catch the exception? Ignore it and corrupt data?
The only sane solution here is to fix the bug in the solr indexing code.
> MalformedInputException running cleanup on solr KS 'Logging', we should catch the exception
> -------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-4378
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4378
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 1.0.8, 1.0.9, 1.0.10, 1.1.0
> Reporter: Alex Liu
> Fix For: 1.1.2
>
>
> The following occurred on 10 node cluster which we were running rebalance. Nick said it appeared to be related to running cleanup on a solr secondary index cf, and with this cluster it occurs when running cleanup on the Logging KS. Please note that we did run the solr_logging demo on this data prior to cleanup.
> The exception java.nio.charset.MalformedInputException: Input length = 1 is caused by incompatible data format.
> It comes from doCleanupCompaction method of CompactionManager.java from C*
> try
> { cfs.indexManager.deleteFromIndexes(row.getKey(), indexedColumnsInRow); }
> finally
> { Table.switchLock.readLock().unlock(); }
> it looks like something wrong with the key data in row.getKey()
> ERROR [CompactionExecutor:7] 2012-04-05 03:13:11,550 AbstractCassandraDaemon.java (line 139) Fatal exception in thread Thread[CompactionExecutor:7,1,main]
> java.lang.RuntimeException: java.nio.charset.MalformedInputException: Input length = 1
> at com.datastax.bdp.cassandra.index.solr.SolrSecondaryIndex.deleteFromIndex(SolrSecondaryIndex.java:412)
> at org.apache.cassandra.db.index.SecondaryIndexManager.deleteFromIndexes(SecondaryIndexManager.java:488)
> at org.apache.cassandra.db.compaction.CompactionManager.doCleanupCompaction(CompactionManager.java:759)
> at org.apache.cassandra.db.compaction.CompactionManager.access$300(CompactionManager.java:64)
> at org.apache.cassandra.db.compaction.CompactionManager$5.perform(CompactionManager.java:242)
> at org.apache.cassandra.db.compaction.CompactionManager$2.call(CompactionManager.java:183)
> 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:164)
> at org.apache.cassandra.utils.ByteBufferUtil.string(ByteBufferUtil.java:121)
> at com.datastax.bdp.cassandra.index.solr.SolrSecondaryIndex.deleteFromIndex(SolrSecondaryIndex.java:405)
> ... 10 more
> Can we catch the exception here, so the program can continue running.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CASSANDRA-4378) MalformedInputException running
cleanup on solr KS 'Logging', we should catch the exception
Posted by "Brandon Williams (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401526#comment-13401526 ]
Brandon Williams commented on CASSANDRA-4378:
---------------------------------------------
This sounds like papering over the problem to me. If there is bad data, then scrub should be used to remove it.
> MalformedInputException running cleanup on solr KS 'Logging', we should catch the exception
> -------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-4378
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4378
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 1.0.8, 1.0.9, 1.0.10, 1.1.0
> Reporter: Alex Liu
> Fix For: 1.1.2
>
>
> The following occurred on 10 node cluster which we were running rebalance. Nick said it appeared to be related to running cleanup on a solr secondary index cf, and with this cluster it occurs when running cleanup on the Logging KS. Please note that we did run the solr_logging demo on this data prior to cleanup.
> The exception java.nio.charset.MalformedInputException: Input length = 1 is caused by incompatible data format.
> It comes from doCleanupCompaction method of CompactionManager.java from C*
> try
> { cfs.indexManager.deleteFromIndexes(row.getKey(), indexedColumnsInRow); }
> finally
> { Table.switchLock.readLock().unlock(); }
> it looks like something wrong with the key data in row.getKey()
> ERROR [CompactionExecutor:7] 2012-04-05 03:13:11,550 AbstractCassandraDaemon.java (line 139) Fatal exception in thread Thread[CompactionExecutor:7,1,main]
> java.lang.RuntimeException: java.nio.charset.MalformedInputException: Input length = 1
> at com.datastax.bdp.cassandra.index.solr.SolrSecondaryIndex.deleteFromIndex(SolrSecondaryIndex.java:412)
> at org.apache.cassandra.db.index.SecondaryIndexManager.deleteFromIndexes(SecondaryIndexManager.java:488)
> at org.apache.cassandra.db.compaction.CompactionManager.doCleanupCompaction(CompactionManager.java:759)
> at org.apache.cassandra.db.compaction.CompactionManager.access$300(CompactionManager.java:64)
> at org.apache.cassandra.db.compaction.CompactionManager$5.perform(CompactionManager.java:242)
> at org.apache.cassandra.db.compaction.CompactionManager$2.call(CompactionManager.java:183)
> 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:164)
> at org.apache.cassandra.utils.ByteBufferUtil.string(ByteBufferUtil.java:121)
> at com.datastax.bdp.cassandra.index.solr.SolrSecondaryIndex.deleteFromIndex(SolrSecondaryIndex.java:405)
> ... 10 more
> Can we catch the exception here, so the program can continue running.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CASSANDRA-4378) MalformedInputException running
cleanup on solr KS 'Logging', we should catch the exception
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401615#comment-13401615 ]
Jonathan Ellis commented on CASSANDRA-4378:
-------------------------------------------
the daemon will not stop, only the cleanup operation
> MalformedInputException running cleanup on solr KS 'Logging', we should catch the exception
> -------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-4378
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4378
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 1.0.8, 1.0.9, 1.0.10, 1.1.0
> Reporter: Alex Liu
> Fix For: 1.1.2
>
>
> The following occurred on 10 node cluster which we were running rebalance. Nick said it appeared to be related to running cleanup on a solr secondary index cf, and with this cluster it occurs when running cleanup on the Logging KS. Please note that we did run the solr_logging demo on this data prior to cleanup.
> The exception java.nio.charset.MalformedInputException: Input length = 1 is caused by incompatible data format.
> It comes from doCleanupCompaction method of CompactionManager.java from C*
> try
> { cfs.indexManager.deleteFromIndexes(row.getKey(), indexedColumnsInRow); }
> finally
> { Table.switchLock.readLock().unlock(); }
> it looks like something wrong with the key data in row.getKey()
> ERROR [CompactionExecutor:7] 2012-04-05 03:13:11,550 AbstractCassandraDaemon.java (line 139) Fatal exception in thread Thread[CompactionExecutor:7,1,main]
> java.lang.RuntimeException: java.nio.charset.MalformedInputException: Input length = 1
> at com.datastax.bdp.cassandra.index.solr.SolrSecondaryIndex.deleteFromIndex(SolrSecondaryIndex.java:412)
> at org.apache.cassandra.db.index.SecondaryIndexManager.deleteFromIndexes(SecondaryIndexManager.java:488)
> at org.apache.cassandra.db.compaction.CompactionManager.doCleanupCompaction(CompactionManager.java:759)
> at org.apache.cassandra.db.compaction.CompactionManager.access$300(CompactionManager.java:64)
> at org.apache.cassandra.db.compaction.CompactionManager$5.perform(CompactionManager.java:242)
> at org.apache.cassandra.db.compaction.CompactionManager$2.call(CompactionManager.java:183)
> 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:164)
> at org.apache.cassandra.utils.ByteBufferUtil.string(ByteBufferUtil.java:121)
> at com.datastax.bdp.cassandra.index.solr.SolrSecondaryIndex.deleteFromIndex(SolrSecondaryIndex.java:405)
> ... 10 more
> Can we catch the exception here, so the program can continue running.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CASSANDRA-4378) MalformedInputException running
cleanup on solr KS 'Logging', we should catch the exception
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis resolved CASSANDRA-4378.
---------------------------------------
Resolution: Not A Problem
Fix Version/s: (was: 1.1.3)
> MalformedInputException running cleanup on solr KS 'Logging', we should catch the exception
> -------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-4378
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4378
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 1.0.8, 1.0.9, 1.0.10, 1.1.0
> Reporter: Alex Liu
>
> The following occurred on 10 node cluster which we were running rebalance. Nick said it appeared to be related to running cleanup on a solr secondary index cf, and with this cluster it occurs when running cleanup on the Logging KS. Please note that we did run the solr_logging demo on this data prior to cleanup.
> The exception java.nio.charset.MalformedInputException: Input length = 1 is caused by incompatible data format.
> It comes from doCleanupCompaction method of CompactionManager.java from C*
> try
> { cfs.indexManager.deleteFromIndexes(row.getKey(), indexedColumnsInRow); }
> finally
> { Table.switchLock.readLock().unlock(); }
> it looks like something wrong with the key data in row.getKey()
> ERROR [CompactionExecutor:7] 2012-04-05 03:13:11,550 AbstractCassandraDaemon.java (line 139) Fatal exception in thread Thread[CompactionExecutor:7,1,main]
> java.lang.RuntimeException: java.nio.charset.MalformedInputException: Input length = 1
> at com.datastax.bdp.cassandra.index.solr.SolrSecondaryIndex.deleteFromIndex(SolrSecondaryIndex.java:412)
> at org.apache.cassandra.db.index.SecondaryIndexManager.deleteFromIndexes(SecondaryIndexManager.java:488)
> at org.apache.cassandra.db.compaction.CompactionManager.doCleanupCompaction(CompactionManager.java:759)
> at org.apache.cassandra.db.compaction.CompactionManager.access$300(CompactionManager.java:64)
> at org.apache.cassandra.db.compaction.CompactionManager$5.perform(CompactionManager.java:242)
> at org.apache.cassandra.db.compaction.CompactionManager$2.call(CompactionManager.java:183)
> 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:164)
> at org.apache.cassandra.utils.ByteBufferUtil.string(ByteBufferUtil.java:121)
> at com.datastax.bdp.cassandra.index.solr.SolrSecondaryIndex.deleteFromIndex(SolrSecondaryIndex.java:405)
> ... 10 more
> Can we catch the exception here, so the program can continue running.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira