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 06922173F9 for ; Thu, 23 Apr 2015 18:08:39 +0000 (UTC) Received: (qmail 53985 invoked by uid 500); 23 Apr 2015 18:08:38 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 53935 invoked by uid 500); 23 Apr 2015 18:08:38 -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 53923 invoked by uid 99); 23 Apr 2015 18:08:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Apr 2015 18:08:38 +0000 Date: Thu, 23 Apr 2015 18:08:38 +0000 (UTC) From: "Carl Yeksigian (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-8051) Add SERIAL and LOCAL_SERIAL consistency levels to cqlsh MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-8051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14509481#comment-14509481 ] Carl Yeksigian commented on CASSANDRA-8051: ------------------------------------------- [~Stefania]: I agree that we should consider dropping {{SERIAL}}/{{LOCAL_SERIAL}} for selects, but I think we should create a separate ticket for that, as it will affect more than just cqlsh. > Add SERIAL and LOCAL_SERIAL consistency levels to cqlsh > ------------------------------------------------------- > > Key: CASSANDRA-8051 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8051 > Project: Cassandra > Issue Type: Bug > Components: Tools > Reporter: Nicolas Favre-Felix > Assignee: Carl Yeksigian > Priority: Minor > Labels: cqlsh > Fix For: 2.0.15 > > Attachments: 8051-2.0.txt, 8051-2.1.txt, log-statements-2.0.txt, log-statements-2.1.txt, python-driver-fix.txt > > > cqlsh does not support setting the serial consistency level. The default CL.SERIAL does not let users safely execute LWT alongside an app that runs at LOCAL_SERIAL, and can prevent any LWT from running when a DC is down (e.g. with 2 DCs, RF=3 in each.) > Implementing this well is a bit tricky. A user setting the serial CL will probably not want all of their statements to have a serial CL attached, but only the conditional updates. At the same time it would be useful to support serial reads. "WITH CONSISTENCY LEVEL" used to provide this flexibility. > I believe that it is currently impossible to run a SELECT at SERIAL or LOCAL_SERIAL; the only workaround seems to be to run a conditional update with a predicate that always resolves to False, and to rely on the CAS response to read the data. -- This message was sent by Atlassian JIRA (v6.3.4#6332)