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 0958210EB5 for ; Tue, 10 Sep 2013 13:27:56 +0000 (UTC) Received: (qmail 93409 invoked by uid 500); 10 Sep 2013 13:27:55 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 93168 invoked by uid 500); 10 Sep 2013 13:27:55 -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 93074 invoked by uid 99); 10 Sep 2013 13:27:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Sep 2013 13:27:51 +0000 Date: Tue, 10 Sep 2013 13:27:51 +0000 (UTC) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CASSANDRA-5994) Allow empty CQL3 batches (as no-op) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Sylvain Lebresne created CASSANDRA-5994: ------------------------------------------- Summary: Allow empty CQL3 batches (as no-op) Key: CASSANDRA-5994 URL: https://issues.apache.org/jira/browse/CASSANDRA-5994 Project: Cassandra Issue Type: Improvement Reporter: Sylvain Lebresne Assignee: Sylvain Lebresne Priority: Trivial Fix For: 1.2.10 Attachments: 5994.txt The CQL3 parser doesn't allow empty batch statements and bitches with a parsing error. While clients should probably make sure they don't generate empty batches as it's useless, it's easy for client that general batch requests to forget handling the empty case, ending up sending an empty batch. it's a tad annoying to get a runtime error in production just for that. Let just it being a no-op. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira