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 D320317EB6 for ; Thu, 7 May 2015 21:36:05 +0000 (UTC) Received: (qmail 66991 invoked by uid 500); 7 May 2015 21:36:00 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 66958 invoked by uid 500); 7 May 2015 21:36:00 -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 66945 invoked by uid 99); 7 May 2015 21:36:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2015 21:36:00 +0000 Date: Thu, 7 May 2015 21:36:00 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CASSANDRA-8517) Make client-side Token Aware Balancing possible with Global Indexes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-8517?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Ellis resolved CASSANDRA-8517. --------------------------------------- Resolution: Not A Problem Switching CASSANDRA-6477 syntax from GI to MV will make this a non-problem. > Make client-side Token Aware Balancing possible with Global Indexes > ------------------------------------------------------------------- > > Key: CASSANDRA-8517 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8517 > Project: Cassandra > Issue Type: Improvement > Reporter: Micha=C3=ABl Figui=C3=A8re > Fix For: 3.x > > > This is a follow up ticket for CASSANDRA-6477, to consider enabling clien= t-side Token Awareness Balancing with Global Indexes, a it would be a pity = to loose this efficient optimization when using these new indexes. My origi= nal comment was: > {quote} > Something that hasn't been mentioned so far in this thread is client side= 's Token Aware Balancing. So far when a query relies on a Secondary Index, = it doesn't have any partition key specified in its where clause which means= that the driver will fall back on the underlying balancing policy, which i= s DC aware round robin by default in the DS Java Driver. That's the appropr= iate behavior as there's no node that can be better than another as a coord= inator in this situation. > With Global Indexes, in order for the Driver to still be able to perform = Token Aware Balancing, it'll need to be able to figure out which index will= be used, which doesn't seems to be always trivial in the above examples, e= specially if several columns and/or indexes are involved in the WHERE claus= e. So here we might need to include an extra information about it in the Pr= epare response message of the Native Protocol, if the indexes to be involve= d can be figured out at Prepare-time. > {quote} -- This message was sent by Atlassian JIRA (v6.3.4#6332)