Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 86182 invoked from network); 17 Mar 2010 02:55:26 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Mar 2010 02:55:26 -0000 Received: (qmail 94335 invoked by uid 500); 17 Mar 2010 02:55:25 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 94244 invoked by uid 500); 17 Mar 2010 02:55:25 -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 94233 invoked by uid 99); 17 Mar 2010 02:55:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 02:55:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of casablinca@126.com designates 123.125.50.112 as permitted sender) Received: from [123.125.50.112] (HELO m50-112.126.com) (123.125.50.112) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 02:55:17 +0000 Received: from china-b76158db7 (unknown [124.192.33.194]) by smtp6 (Coremail) with SMTP id j9KowLCLG4d3RKBLgLsjDw--.32013S2; Wed, 17 Mar 2010 10:54:48 +0800 (CST) Date: Wed, 17 Mar 2010 10:54:56 +0800 From: "casablinca126.com" To: user Subject: failover exception with hector Message-ID: <201003171054547034334@126.com> X-mailer: Foxmail 6, 9, 201, 16 [cn] Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit X-CM-TRANSID: j9KowLCLG4d3RKBLgLsjDw--.32013S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7JFykAw4kKFWkCr4fCrykZrb_yoWDCrX_KF yxJay8Kr1xKF1xKr93Crs3XFZYgr95ZryDW3yvqFyaqryfAr4rWw1kuFWUuF18Xr4jya4D Jrs0vFs0ya47WjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xREnYFDUUUUU== X-CM-SenderInfo: pfdvtu5olquta6rslhhfrp/1tbi8hOWDUsKpXgqAgABsP X-Virus-Checked: Checked by ClamAV on apache.org hi folks, Just switched from C++ interface to hector, found an exception when testing with a 2-node cluster: Exception in thread "main" org.apache.thrift.TException: Unable to failover to next host at me.prettyprint.cassandra.service.KeyspaceImpl.skipToNextHost(KeyspaceImpl.java:598) at me.prettyprint.cassandra.service.KeyspaceImpl.operateWithFailover(KeyspaceImpl.java:668) at me.prettyprint.cassandra.service.KeyspaceImpl.insert(KeyspaceImpl.java:270) at me.prettyprint.cassandra.service.ExampleClient.insertFromDB(ExampleClient.java:108) at me.prettyprint.cassandra.service.ExampleClient.main(ExampleClient.java:45) I was doing a lot of insertion. Probably inserting to 1 node wsa failed, and hector failed to find the other node. I'm using cassandra-0.5.0. In conf/storage-conf.xml, the ListenAddress is configured as the IP and ThriftAddress is left blank. Any ideas? cheers, Cao Jiguang -------------- casablinca126.com 2010-03-17