[ 
https://issues.apache.org/jira/browse/CASSANDRA-318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jonathan Ellis resolved CASSANDRA-318.
--------------------------------------

    Resolution: Cannot Reproduce

Exception throwing is working correctly.  Attached is a sample client that 
demonstrates this.  (Add Thread.sleep(10000) to Table.getKeyRange to force 
throwing the timeout.)

Exception in thread "main" java.lang.RuntimeException: 
org.apache.thrift.TApplicationException: Internal error processing get_key_range
        at CClient.main(CClient.java:63)
        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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
Caused by: org.apache.thrift.TApplicationException: Internal error processing 
get_key_range
        at 
org.apache.thrift.TApplicationException.read(TApplicationException.java:107)
        at 
org.apache.cassandra.service.Cassandra$Client.recv_get_key_range(Cassandra.java:555)
        at 
org.apache.cassandra.service.Cassandra$Client.get_key_range(Cassandra.java:534)
        at CClient.main(CClient.java:52)
        ... 5 more


> Cassandra not Sending exception During range query timeout.
> -----------------------------------------------------------
>
>                 Key: CASSANDRA-318
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-318
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.4
>         Environment: Linux, Cassandra trunk, Tomcat
>            Reporter: Vijay
>            Priority: Minor
>         Attachments: CClient.java
>
>
> The following is the query, Other node doesnt have any error message. 
> According to Jbellis the query timed out but there was no exception sent out 
> back to the client insted null List was returned, which is an issue.
> ERROR [pool-1-thread-139] 2009-07-27 04:19:30,253 Cassandra.java (line 1167) 
> Internal error processing get_key_range
> java.lang.RuntimeException: error reading keyrange 
> RangeCommand(table='WBXCDOCUMENT', columnFamily=IDENTIFIER, startWith='', 
> stopAt='', maxResults=10000)
>         at 
> org.apache.cassandra.service.StorageProxy.getKeyRange(StorageProxy.java:626)
>         at 
> org.apache.cassandra.service.CassandraServer.get_key_range(CassandraServer.java:516)
>         at 
> org.apache.cassandra.service.Cassandra$Processor$get_key_range.process(Cassandra.java:1163)
>         at 
> org.apache.cassandra.service.Cassandra$Processor.process(Cassandra.java:796)
>         at 
> org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:252)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown 
> Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> Caused by: java.util.concurrent.TimeoutException: Operation timed out.
>         at org.apache.cassandra.net.AsyncResult.get(AsyncResult.java:95)
>         at 
> org.apache.cassandra.service.StorageProxy.getKeyRange(StorageProxy.java:621)
>         ... 7 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to