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 7A68518AEA for ; Fri, 24 Jul 2015 15:52:08 +0000 (UTC) Received: (qmail 56768 invoked by uid 500); 24 Jul 2015 15:52:05 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 56739 invoked by uid 500); 24 Jul 2015 15:52:05 -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 56728 invoked by uid 99); 24 Jul 2015 15:52:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jul 2015 15:52:05 +0000 Date: Fri, 24 Jul 2015 15:52:05 +0000 (UTC) From: "Aleksey Yeschenko (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (CASSANDRA-9895) Batchlog RF>1 writes to a single node but not itself. 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-9895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aleksey Yeschenko reassigned CASSANDRA-9895: -------------------------------------------- Assignee: Aleksey Yeschenko > Batchlog RF>1 writes to a single node but not itself. > ----------------------------------------------------- > > Key: CASSANDRA-9895 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9895 > Project: Cassandra > Issue Type: Bug > Reporter: T Jake Luciani > Assignee: Aleksey Yeschenko > Fix For: 2.1.x > > > In the batchlogmanager when selecting the endpoints for to write the batchlog to, for RF>1, we filter out any down nodes and the local node. > This means we require two nodes up but only write to one. Why? This affects availability since we need two nodes to write at CL.ONE. > If we *require* two copies of the batchlog then we should include ourselfs in the calculation. > If we allow a batchlog write with only a single node up then we should write to the local batchlog. > The code is here: https://github.com/apache/cassandra/blob/1c80b04be1d47d03bbde888cea960f5ff8a95d58/src/java/org/apache/cassandra/db/BatchlogManager.java#L530 -- This message was sent by Atlassian JIRA (v6.3.4#6332)