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 0EEE4113D7 for ; Sun, 24 Aug 2014 01:14:12 +0000 (UTC) Received: (qmail 53242 invoked by uid 500); 24 Aug 2014 01:14:11 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 53201 invoked by uid 500); 24 Aug 2014 01:14:11 -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 53188 invoked by uid 99); 24 Aug 2014 01:14:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Aug 2014 01:14:11 +0000 Date: Sun, 24 Aug 2014 01:14:11 +0000 (UTC) From: "sankalp kohli (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CASSANDRA-7822) Confusing timeout on CAS contention MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 sankalp kohli created CASSANDRA-7822: ---------------------------------------- Summary: Confusing timeout on CAS contention Key: CASSANDRA-7822 URL: https://issues.apache.org/jira/browse/CASSANDRA-7822 Project: Cassandra Issue Type: Improvement Reporter: sankalp kohli Priority: Minor If we have contention in CAS and we hit the cas contention timeout, we throw an exception. In this timeout exception, we pass that 0 replicas responded. This is very confusing to someone looking at the client logs. I think we might need to throw a separate exception for contention or may be add a flag in the timeout exception. We have seen many people confused by this so I think we should fix it. This is how we throw it on contention. throw new WriteTimeoutException(WriteType.CAS, consistencyForPaxos, 0, consistencyForPaxos.blockFor(Keyspace.open(keyspaceName))); -- This message was sent by Atlassian JIRA (v6.2#6252)