Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AFF4F10ADE for ; Mon, 1 Jul 2013 20:26:20 +0000 (UTC) Received: (qmail 60089 invoked by uid 500); 1 Jul 2013 20:26:20 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 60072 invoked by uid 500); 1 Jul 2013 20:26:20 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 60063 invoked by uid 99); 1 Jul 2013 20:26:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jul 2013 20:26:20 +0000 Date: Mon, 1 Jul 2013 20:26:20 +0000 (UTC) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (CASSANDRA-5714) Allow coordinator failover for cursors MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-5714?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sylvain Lebresne reassigned CASSANDRA-5714: ------------------------------------------- Assignee: Sylvain Lebresne =20 > Allow coordinator failover for cursors > -------------------------------------- > > Key: CASSANDRA-5714 > URL: https://issues.apache.org/jira/browse/CASSANDRA-5714 > Project: Cassandra > Issue Type: Improvement > Affects Versions: 1.2.0 beta 1 > Reporter: Micha=C3=ABl Figui=C3=A8re > Assignee: Sylvain Lebresne > Priority: Minor > > With CASSANDRA-4415 if a coordinator fails or gets slow, causing the {{NE= XT}} request to timeout, the client application won't be able to complete i= ts browsing of the result. That implies that most of the time when the deve= loper will rely on cursors he will have to write some logic to handle a ret= ry request for results starting where the iteration failed. This will quick= ly become painful. > Ideally the driver should handle this failover by itself by transparently= issuing this retry query when {{NEXT}} fail, but as the driver doesn't und= erstand CQL queries, the only thing it's aware of is the number of rows alr= eady read. Therefore we should allow an optional parameter {{}} in {{QUERY}} and {{EXECUTE}} messages that would allow a kind of s= tateless failover of cursors. > With such an option, developers wouldn't have to write any failover/retry= logic on failure as they would know that everything has already been tried= by the driver. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira