incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dikang Gu <dikan...@gmail.com>
Subject Re: Cassandra encountered an internal error processing this request: TApplicationError type: 6 message:Internal error
Date Sun, 07 Aug 2011 06:51:56 GMT
That's great!

Thanks Aaron.

On Sun, Aug 7, 2011 at 2:21 PM, aaron morton <aaron@thelastpickle.com>wrote:

> The NPE is fixed in 0.8.2 see
> https://github.com/apache/cassandra/blob/cassandra-0.8.2/CHANGES.txt#L13
>
> Cheers
>
> -----------------
> Aaron Morton
> Freelance Cassandra Developer
> @aaronmorton
> http://www.thelastpickle.com
>
> On 5 Aug 2011, at 12:46, Dikang Gu wrote:
>
> Sure, I can find the stack trace for some exceptions:
>
> ERROR [pool-2-thread-132] 2011-07-23 13:29:04,869 Cassandra.java (line
> 3210) Internal error processing get_range_slices
> java.lang.NullPointerException
>         at org.apache.cassandra.db.ColumnFamily.diff(ColumnFamily.java:298)
>         at org.apache.cassandra.db.ColumnFamily.diff(ColumnFamily.java:406)
>         at
> org.apache.cassandra.service.RowRepairResolver.maybeScheduleRepairs(RowRepairResolver.java:103)
>         at
> org.apache.cassandra.service.RangeSliceResponseResolver$2.getReduced(RangeSliceResponseResolver.java:120)
>         at
> org.apache.cassandra.service.RangeSliceResponseResolver$2.getReduced(RangeSliceResponseResolver.java:85)
>         at
> org.apache.cassandra.utils.ReducingIterator.computeNext(ReducingIterator.java:74)
>         at
> com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:140)
>         at
> com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:135)
>         at
> org.apache.cassandra.service.StorageProxy.getRangeSlice(StorageProxy.java:715)
>         at
> org.apache.cassandra.thrift.CassandraServer.get_range_slices(CassandraServer.java:617)
>         at
> org.apache.cassandra.thrift.Cassandra$Processor$get_range_slices.process(Cassandra.java:3202)
>         at
> org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2889)
>         at
> org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:187)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:636)
>  INFO [NonPeriodicTasks:1] 2011-07-23 13:38:23,284 ColumnFamilyStore.java
> (line 1013) Enqueuing flush of Memtable-MessageKey@2036597133(5020/62750
> serialized/live bytes, 61 ops)
>
> But can no for some others:
>
> ERROR [pool-2-thread-181] 2011-07-27 11:20:39,550 Cassandra.java (line
> 3210) Internal error processing get_range_slices
> java.lang.NullPointerException
>  INFO [NonPeriodicTasks:1] 2011-07-27 11:22:43,561 ColumnFamilyStore.java
> (line 1013) Enqueuing flush of Memtable-MessageKey@1288355086(74715/933937
> serialized/live bytes, 773 ops)
>
> Why does this happen?
>
> Thanks.
>
> On Fri, Aug 5, 2011 at 6:26 AM, aaron morton <aaron@thelastpickle.com>wrote:
>
>> The error log will contain a call stack, we need that.
>>
>> e.g.
>>
>> Failed with exception java.io.IOException:java.lang.NullPointerException
>> ERROR 15:22:33,528 Failed with exception
>> java.io.IOException:java.lang.NullPointerException
>> java.io.IOException: java.lang.NullPointerException
>>  at
>> org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:341)
>> at org.apache.hadoop.hive.ql.exec.FetchTask.fetch(FetchTask.java:133)
>>  at org.apache.hadoop.hive.ql.Driver.getResults(Driver.java:1114)
>> at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:187)
>>  at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:241)
>> at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:456)
>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>  at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>>  at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
>> Caused by: java.lang.NullPointerException
>> at
>> org.apache.cassandra.hadoop.ColumnFamilyRecordReader.getCurrentKey(ColumnFamilyRecordReader.java:82)
>>  at
>> org.apache.cassandra.hadoop.ColumnFamilyRecordReader.getCurrentKey(ColumnFamilyRecordReader.java:53)
>> at
>> org.apache.hadoop.hive.cassandra.input.HiveCassandraStandardColumnInputFormat$2.next(HiveCassandraStandardColumnInputFormat.java:164)
>>  at
>> org.apache.hadoop.hive.cassandra.input.HiveCassandraStandardColumnInputFormat$2.next(HiveCassandraStandardColumnInputFormat.java:111)
>> at
>> org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:326)
>>  ... 10 more
>>
>> Cheers
>>
>>  -----------------
>> Aaron Morton
>> Freelance Cassandra Developer
>> @aaronmorton
>> http://www.thelastpickle.com
>>
>> On 4 Aug 2011, at 15:26, Dikang Gu wrote:
>>
>>  Yes, I do find the error log!
>>
>> ERROR [pool-2-thread-63] 2011-08-04 13:23:54,138 Cassandra.java (line
>> 3210) Internal error processing get_range_slices
>> java.lang.NullPointerException
>>
>> I'm using the cassandra-0.8.1, is this a known bug?
>>
>> Thanks.
>>
>> --
>> Dikang Gu
>> 0086 - 18611140205
>>
>> On Wednesday, August 3, 2011 at 7:53 PM, aaron morton wrote:
>>
>> There really should be something logged at the ERROR level in the server
>> side log, that error is raised when an unhanded exception bubbles out to the
>> thrift layer on the server.
>>
>> Double check the logging is configured correctly.
>>
>> Cheers
>>
>> -----------------
>> Aaron Morton
>> Freelance Cassandra Developer
>> @aaronmorton
>> http://www.thelastpickle.com
>>
>> On 3 Aug 2011, at 14:19, Dikang Gu wrote:
>>
>> I got this error when processing a lot operations….
>>
>> 2011-08-03 11:26:35,786 ERROR [com.iw.nebula.dao.simpledb.SimpleDBAdapter]
>> - <Cassandra encountered an internal error processing this request:
>> TApplicationError type: 6 message:Internal error processing batch_mutate>
>>
>> 2011-08-03 11:48:21,998 ERROR [com.iw.nebula.dao.simpledb.SimpleDBAdapter]
>> - <Cassandra encountered an internal error processing this request:
>> TApplicationError type: 6 message:Internal error processing
>> get_range_slices>
>>
>> I did not see anything wrong in the cassandra/system.log
>>
>> What's your suggestions?
>>
>> --
>> Dikang Gu
>> 0086 - 18611140205
>>
>>
>>
>>
>
>
> --
> Dikang Gu
>
> 0086 - 18611140205
>
>
>


-- 
Dikang Gu

0086 - 18611140205

Mime
View raw message