Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A204310FC2 for ; Fri, 14 Feb 2014 10:04:54 +0000 (UTC) Received: (qmail 47265 invoked by uid 500); 14 Feb 2014 10:04:51 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 47159 invoked by uid 500); 14 Feb 2014 10:04:50 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 47139 invoked by uid 99); 14 Feb 2014 10:04:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Feb 2014 10:04:47 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [178.33.110.239] (HELO mo1.mail-out.ovh.net) (178.33.110.239) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Feb 2014 10:04:41 +0000 Received: from mail406.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo1.mail-out.ovh.net (Postfix) with SMTP id 1EF7CFF9C43 for ; Fri, 14 Feb 2014 11:11:24 +0100 (CET) Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 14 Feb 2014 12:09:13 +0200 Received: from unknown (HELO ?192.168.18.114?) (cscetbon@atid.fr@193.252.149.222) by ns0.ovh.net with SMTP; 14 Feb 2014 12:09:09 +0200 From: Cyril Scetbon Content-Type: multipart/alternative; boundary="Apple-Mail=_B2C95E4C-3881-411D-83C1-62E7DC973070" Message-Id: Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: TimedOutException in Java but not in cqlsh Date: Fri, 14 Feb 2014 11:04:13 +0100 References: <2909DC40-09CC-4B3F-8E77-A7C1B8A3AE7A@free.fr> To: user@cassandra.apache.org In-Reply-To: X-Mailer: Apple Mail (2.1827) X-Ovh-Tracer-Id: 16952956374302443478 X-Ovh-Remote: 193.252.149.222 () X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: 0 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeejtddrjedvucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecu X-Spam-Check: DONE|U 0.5/N X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeejtddrkeekucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecu X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_B2C95E4C-3881-411D-83C1-62E7DC973070 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Hi, Good advice. I found earlier in the morning that it's related to = consistency LOCAL_ONE. I'll check later if it should raise an error in = some cases. Thanks --=20 Cyril SCETBON On 14 Feb 2014, at 10:12, Vivek Mishra wrote: > Check for consisteny level and socket timeout setting on client side. >=20 > -Vivek >=20 >=20 > On Fri, Feb 14, 2014 at 2:36 PM, Cyril Scetbon = wrote: > After a few tests, it does not depend on the query. Whatever cql3 = query I do, I always get the same exception. If someone sees something = ... > -- > Cyril SCETBON >=20 > On 13 Feb 2014, at 17:22, Cyril Scetbon wrote: >=20 > > Hi, > > > > I get a weird issue with cassandra 1.2.13. As written in the = subject, a query executed by class CqlPagingRecordReader raises a = TimedOutException exception in Java but I don't have any error when I = use it with cqlsh. What's the difference between those 2 ways ? Does = cqlsh bypass some configuration compared to Java ? > > > > You can find my sample code at http://pastebin.com/vbAFyAys (don't = take care of the way it's coded cause it's just a sample code). FYI, I = can't reproduce it on another cluster. Here is the output of the 2 = different ways (java and cqlsh) I used http://pastebin.com/umMNXJRw > > > > Thanks > > -- > > Cyril SCETBON > > >=20 >=20 --Apple-Mail=_B2C95E4C-3881-411D-83C1-62E7DC973070 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=iso-8859-1 Hi,

Good advice. I found earlier in the morning that it's related to consistency LOCAL_ONE. I'll check later if it should raise an error in some cases.

Thanks
-- 
Cyril SCETBON

On 14 Feb 2014, at 10:12, Vivek Mishra <mishra.vivs@gmail.com> wrote:

Check for consisteny level and socket timeout setting on client side.

-Vivek


On Fri, Feb 14, 2014 at 2:36 PM, Cyril Scetbon <cyril.scetbon@free.fr> wrote:
After a few tests, it does not depend on the query. Whatever cql3 query I do, I always get the same exception. If someone sees something ...
--
Cyril SCETBON

On 13 Feb 2014, at 17:22, Cyril Scetbon <cyril.scetbon@free.fr> wrote:

> Hi,
>
> I get a weird issue with cassandra 1.2.13. As written in the subject, a query executed by class CqlPagingRecordReader raises a TimedOutException exception in Java but I don't have any error when I use it with cqlsh. What's the difference between those 2 ways ? Does cqlsh bypass some configuration compared to Java ?
>
> You can find my sample code at http://pastebin.com/vbAFyAys (don't take care of the way it's coded cause it's just a sample code). FYI, I can't reproduce it on another cluster. Here is the output of the 2 different ways (java and cqlsh) I used http://pastebin.com/umMNXJRw
>
> Thanks
> --
> Cyril SCETBON
>



--Apple-Mail=_B2C95E4C-3881-411D-83C1-62E7DC973070--