You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by David McNelis <dm...@gmail.com> on 2013/03/29 16:26:33 UTC

CQL queries timing out (and had worked)

I'm running 1.2.3 and have both CQL3 tabels and old school style CFs in my
cluster.

I'd had a large insert job running the last several days which just
ended.... it had been inserting using cql3 insert statements in a cql3
table.

Now, I show no compactions going on in my cluster but for some reason any
cql3 query I try to execute, insert, select, through cqlsh or through
external library, all time out with an rpc_timeout.

If I use cassandra-cli, I can do "list tablename limit 10" and immediately
get my 10 rows back.

However, if I do "select * from tablename limit 10" I get the rpc timeout
error.  Same table, same server.  It doesn't seem to matter if I'm hitting
a cql3 definited table or older style.

Load on the nodes is relatively low at the moment.

Any suggestions short of restarting nodes?  This is a pretty major issue
for us right now.

Re: CQL queries timing out (and had worked)

Posted by Edward Capriolo <ed...@gmail.com>.
Technically it should work a mix of hsha and the other option. I tried a
mix/match as and I noticed some clients were not happy and some other odd
stuff, but I could not tie it down to the setting because thrift from the
cli was working for me.


On Sun, Mar 31, 2013 at 6:30 AM, aaron morton <aa...@thelastpickle.com>wrote:

> So that mismatch can break rpc across the cluster, apparently.
>
> mmm, that ain't right.
>
> Anything in the logs?
> Can you reproduce this on a small cluster or using ccm
> https://github.com/pcmanus/ccm ?
> Can you raise a ticket ?
>
> Thanks
>
> -----------------
> Aaron Morton
> Freelance Cassandra Consultant
> New Zealand
>
> @aaronmorton
> http://www.thelastpickle.com
>
> On 29/03/2013, at 9:17 PM, David McNelis <dm...@gmail.com> wrote:
>
> Final reason for problem:
>
> We'd had one node's config for rpc type changed from sync to hsha...
>
> So that mismatch can break rpc across the cluster, apparently.
>
> It would be nice if there was a good way to set that in a single spot for
> the cluster or handle the mismatch differently.  Otherwise, if you wanted
> to change from sync to hsha in a cluster you'd have to entirely restart the
> cluster (not a big deal), but CQL would apparently not work at all until
> all of your nodes had been restarted.
>
>
> On Fri, Mar 29, 2013 at 10:35 AM, David McNelis <dm...@gmail.com>wrote:
>
>> Appears that restarting a node makes CQL available on that node again,
>> but only that node.
>>
>> Looks like I'll be doing a rolling restart.
>>
>>
>> On Fri, Mar 29, 2013 at 10:26 AM, David McNelis <dm...@gmail.com>wrote:
>>
>>> I'm running 1.2.3 and have both CQL3 tabels and old school style CFs in
>>> my cluster.
>>>
>>> I'd had a large insert job running the last several days which just
>>> ended.... it had been inserting using cql3 insert statements in a cql3
>>> table.
>>>
>>> Now, I show no compactions going on in my cluster but for some reason
>>> any cql3 query I try to execute, insert, select, through cqlsh or through
>>> external library, all time out with an rpc_timeout.
>>>
>>> If I use cassandra-cli, I can do "list tablename limit 10" and
>>> immediately get my 10 rows back.
>>>
>>> However, if I do "select * from tablename limit 10" I get the rpc
>>> timeout error.  Same table, same server.  It doesn't seem to matter if I'm
>>> hitting a cql3 definited table or older style.
>>>
>>> Load on the nodes is relatively low at the moment.
>>>
>>> Any suggestions short of restarting nodes?  This is a pretty major issue
>>> for us right now.
>>>
>>
>>
>
>

Re: CQL queries timing out (and had worked)

Posted by aaron morton <aa...@thelastpickle.com>.
> So that mismatch can break rpc across the cluster, apparently.  
mmm, that ain't right. 

Anything in the logs?
Can you reproduce this on a small cluster or using ccm https://github.com/pcmanus/ccm ?
Can you raise a ticket ? 

Thanks

-----------------
Aaron Morton
Freelance Cassandra Consultant
New Zealand

@aaronmorton
http://www.thelastpickle.com

On 29/03/2013, at 9:17 PM, David McNelis <dm...@gmail.com> wrote:

> Final reason for problem:
> 
> We'd had one node's config for rpc type changed from sync to hsha...  
> 
> So that mismatch can break rpc across the cluster, apparently.  
> 
> It would be nice if there was a good way to set that in a single spot for the cluster or handle the mismatch differently.  Otherwise, if you wanted to change from sync to hsha in a cluster you'd have to entirely restart the cluster (not a big deal), but CQL would apparently not work at all until all of your nodes had been restarted.
> 
> 
> On Fri, Mar 29, 2013 at 10:35 AM, David McNelis <dm...@gmail.com> wrote:
> Appears that restarting a node makes CQL available on that node again, but only that node.
> 
> Looks like I'll be doing a rolling restart.
> 
> 
> On Fri, Mar 29, 2013 at 10:26 AM, David McNelis <dm...@gmail.com> wrote:
> I'm running 1.2.3 and have both CQL3 tabels and old school style CFs in my cluster.
> 
> I'd had a large insert job running the last several days which just ended.... it had been inserting using cql3 insert statements in a cql3 table.
> 
> Now, I show no compactions going on in my cluster but for some reason any cql3 query I try to execute, insert, select, through cqlsh or through external library, all time out with an rpc_timeout.
> 
> If I use cassandra-cli, I can do "list tablename limit 10" and immediately get my 10 rows back.
> 
> However, if I do "select * from tablename limit 10" I get the rpc timeout error.  Same table, same server.  It doesn't seem to matter if I'm hitting a cql3 definited table or older style.
> 
> Load on the nodes is relatively low at the moment. 
> 
> Any suggestions short of restarting nodes?  This is a pretty major issue for us right now.
> 
> 


Re: CQL queries timing out (and had worked)

Posted by David McNelis <dm...@gmail.com>.
Final reason for problem:

We'd had one node's config for rpc type changed from sync to hsha...

So that mismatch can break rpc across the cluster, apparently.

It would be nice if there was a good way to set that in a single spot for
the cluster or handle the mismatch differently.  Otherwise, if you wanted
to change from sync to hsha in a cluster you'd have to entirely restart the
cluster (not a big deal), but CQL would apparently not work at all until
all of your nodes had been restarted.


On Fri, Mar 29, 2013 at 10:35 AM, David McNelis <dm...@gmail.com> wrote:

> Appears that restarting a node makes CQL available on that node again, but
> only that node.
>
> Looks like I'll be doing a rolling restart.
>
>
> On Fri, Mar 29, 2013 at 10:26 AM, David McNelis <dm...@gmail.com>wrote:
>
>> I'm running 1.2.3 and have both CQL3 tabels and old school style CFs in
>> my cluster.
>>
>> I'd had a large insert job running the last several days which just
>> ended.... it had been inserting using cql3 insert statements in a cql3
>> table.
>>
>> Now, I show no compactions going on in my cluster but for some reason any
>> cql3 query I try to execute, insert, select, through cqlsh or through
>> external library, all time out with an rpc_timeout.
>>
>> If I use cassandra-cli, I can do "list tablename limit 10" and
>> immediately get my 10 rows back.
>>
>> However, if I do "select * from tablename limit 10" I get the rpc timeout
>> error.  Same table, same server.  It doesn't seem to matter if I'm hitting
>> a cql3 definited table or older style.
>>
>> Load on the nodes is relatively low at the moment.
>>
>> Any suggestions short of restarting nodes?  This is a pretty major issue
>> for us right now.
>>
>
>

Re: CQL queries timing out (and had worked)

Posted by David McNelis <dm...@gmail.com>.
Appears that restarting a node makes CQL available on that node again, but
only that node.

Looks like I'll be doing a rolling restart.


On Fri, Mar 29, 2013 at 10:26 AM, David McNelis <dm...@gmail.com> wrote:

> I'm running 1.2.3 and have both CQL3 tabels and old school style CFs in my
> cluster.
>
> I'd had a large insert job running the last several days which just
> ended.... it had been inserting using cql3 insert statements in a cql3
> table.
>
> Now, I show no compactions going on in my cluster but for some reason any
> cql3 query I try to execute, insert, select, through cqlsh or through
> external library, all time out with an rpc_timeout.
>
> If I use cassandra-cli, I can do "list tablename limit 10" and immediately
> get my 10 rows back.
>
> However, if I do "select * from tablename limit 10" I get the rpc timeout
> error.  Same table, same server.  It doesn't seem to matter if I'm hitting
> a cql3 definited table or older style.
>
> Load on the nodes is relatively low at the moment.
>
> Any suggestions short of restarting nodes?  This is a pretty major issue
> for us right now.
>