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 37407116F2 for ; Sun, 17 Aug 2014 20:18:19 +0000 (UTC) Received: (qmail 18304 invoked by uid 500); 17 Aug 2014 20:18:18 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 18265 invoked by uid 500); 17 Aug 2014 20:18:18 -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 18251 invoked by uid 99); 17 Aug 2014 20:18:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Aug 2014 20:18:18 +0000 Date: Sun, 17 Aug 2014 20:18:18 +0000 (UTC) From: "Aleksey Yeschenko (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-7252) RingCache cannot be configured to use local DC only 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-7252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14100092#comment-14100092 ] Aleksey Yeschenko commented on CASSANDRA-7252: ---------------------------------------------- bq. Do you want me to create another ticket for the address option? If you feel like it and still need it - go for it. (This doesn't mean I'm for it - I haven't looked into the need for it, myself). > RingCache cannot be configured to use local DC only > --------------------------------------------------- > > Key: CASSANDRA-7252 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7252 > Project: Cassandra > Issue Type: Bug > Components: Hadoop > Reporter: Robbie Strickland > Assignee: Robbie Strickland > Labels: patch > Fix For: 2.0.10, 2.1.1 > > Attachments: cassandra-2.0.7-7252-2.txt, cassandra-2.0.7-7252.txt > > > RingCache always calls describe_ring, returning the entire cluster. Considering it's used in the context of writing from Hadoop (which is typically in a multi-DC configuration), this is often not desirable behavior. In some cases there may be high-latency connections between the analytics DC and other DCs. > I am attaching a patch that adds an optional config value to tell RingCache to use local nodes only, in which case it calls describe_local_ring instead. It also adds helpful failed host information to IOExceptions thrown in AbstractColumnFamilyOutputFormat.createAuthenticatedClient, CqlRecordWriter, and ColumnFamilyRecordWriter. This allows a user to more easily solve related connectivity issues. -- This message was sent by Atlassian JIRA (v6.2#6252)