From user-return-64315-archive-asf-public=cust-asf.ponee.io@cassandra.apache.org Tue Aug 6 04:12:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 85C4F180181 for ; Tue, 6 Aug 2019 06:12:02 +0200 (CEST) Received: (qmail 78520 invoked by uid 500); 6 Aug 2019 04:11:58 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 78510 invoked by uid 99); 6 Aug 2019 04:11:58 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Aug 2019 04:11:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id D0667182788 for ; Tue, 6 Aug 2019 04:11:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.8 X-Spam-Level: * X-Spam-Status: No, score=1.8 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ZKjbW-0LVa6Y for ; Tue, 6 Aug 2019 04:11:55 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::435; helo=mail-wr1-x435.google.com; envelope-from=john.sanda@gmail.com; receiver= Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id 4B6257D3FB for ; Tue, 6 Aug 2019 04:11:55 +0000 (UTC) Received: by mail-wr1-x435.google.com with SMTP id p13so11820373wru.10 for ; Mon, 05 Aug 2019 21:11:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=4ISiwPyABOBxpSuQus+QkItths8+2Rqr1gbPZt7L+pc=; b=OkE4sDBsSJRhH5aIhRRGL1T5n6rlVo56ElT1U/BDZgmex7dy4ScYWuWld4xGTAiyU3 7CiRAoO8F8YDdW6eVoVlsZ3nA5IIH2u9hyjRmOkWC0+yCbB20RTPmteVZnEXaoKaOa4O ShYgbEP/31JXgUshnsY4tzivyQvP15QyGKsNfo60efcJGJWlNMAXvtXs3i96l/t8L15z VNaaqAeCgw3FQbkMpEhgYwQu2DnUn4j+u7FqkwUzPG7/j7o5Rj5bZcNcaZVYfwOC5Kgs XS5ccz2vS0mnMAZsVPBRx/Rb8TeX4hx2qOei9RjivpaTVR6teDvVDgzEpOzA1V/6xQwH Tpgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=4ISiwPyABOBxpSuQus+QkItths8+2Rqr1gbPZt7L+pc=; b=YS0MseSjwK4qOUySpT+gmGYVyQt56Xip9nF9PXDbPcPPGL098ZAPxhV9sP6joR+Vup +5aqffJ+OBo9Iz2Rj8S3GM1R66Q1Sa6R+3Ql0RXM+tDJ829tReImMY9yRUNJjUHKlOSv IW9zOOJfary3OZBPvBTUklHYyvvXw+UnisSxmpOv5QadbsFcQO5CbooKPWIqxuv/QfWv QnV/axhaFdLFZ0dRU8DLIVpO0I3HN7oXyvqUIkuUDK2jWoUkPBAnhRna7Kyc3ujaBiWY amjzSslzYySCu8W6uznpHwi7+DPVwbu+WUANBaTsvTRb0vgVEotm+3vc1gUZ8vtD26re P9Aw== X-Gm-Message-State: APjAAAVciw1Ttsw1dXDHb8m1bnFkBbEJnjE5FnC3zFI7Z0cMKSE5+yDA 3bs7znw0SVcwP3rYtWgRbgpuYFhdITv3SQSh7whQb+w1 X-Google-Smtp-Source: APXvYqxJD0HTDCRg1rh0k4Tp1QShxAosTprw9w2yrs074PN21mo5duVnxHuCXFYoqcRT7cPmysqWNp4Loz3aeaendgE= X-Received: by 2002:adf:c70e:: with SMTP id k14mr1658625wrg.201.1565064714482; Mon, 05 Aug 2019 21:11:54 -0700 (PDT) MIME-Version: 1.0 References: <16D80DCA-6A92-47A5-9D57-6D59302921F5@free.fr> In-Reply-To: From: John Sanda Date: Tue, 6 Aug 2019 00:11:43 -0400 Message-ID: Subject: Re: Rebuilding a node without clients hitting it To: user Content-Type: multipart/alternative; boundary="0000000000005b7f7b058f6b06d9" --0000000000005b7f7b058f6b06d9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Assuming the rebuild is happening on a node in another DC, then there should not be an issue if you are using LOCAL_ONE. If the node is in the local DC (i.e., same DC as the client), I am inclined to think repair would be more appropriate than rebuild but I am not 100% certain. On Mon, Aug 5, 2019 at 11:23 PM Jeff Jirsa wrote: > No, not strictly sufficient - makes it much less likely though > > A client may connect to another node and still send the request to that > host if the snitch picks it. You can make THAT less likely with some snit= ch > trickery (setting the badness for the rebuilding host) via jmx > > On Aug 5, 2019, at 8:17 PM, Cyril Scetbon wrote: > > Hey guys, > > Can you confirm that disabling the native transport (nodetool > disablebinary) is enough with Cassandra 3.11+ to avoid clients hitting > inconsistent data on that node when they use LOCAL_ONE consistency ? > (Particularly when the node is rebuilding =E2=80=A6) > I'd like to avoid any fancy client configuration like blacklisting nodes. > > Thanks > =E2=80=94 > Cyril Scetbon > > --=20 - John --0000000000005b7f7b058f6b06d9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Assuming the rebuild is happening on a node in another DC,= then there should not be an issue if you are using LOCAL_ONE. If the node = is in the local DC (i.e., same DC as the client), I am inclined to think re= pair would be more appropriate than rebuild but I am not 100% certain.
On Mo= n, Aug 5, 2019 at 11:23 PM Jeff Jirsa <jjirsa@gmail.com> wrote:
No, not strictly sufficient - makes it= much less likely though

A client may connect to another= node and still send the request to that host if the snitch picks it. You c= an make THAT less likely with some snitch trickery (setting the badness for= the rebuilding host) via jmx=C2=A0

On Aug 5, = 2019, at 8:17 PM, Cyril Scetbon <cyril.scetbon@free.fr> wrote:

Hey guys,

Can you = confirm that disabling the native transport (nodetool disablebinary) is eno= ugh with Cassandra 3.11+ to avoid clients hitting inconsistent data on that= node when they use LOCAL_ONE =C2=A0consistency ? (Particularly when the no= de is rebuilding =E2=80=A6)
I'd like to avoid any fancy clien= t configuration like blacklisting nodes.

Thanks=C2= =A0
=E2=80=94
<= div style=3D"color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-sty= le:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal= ;text-align:start;text-indent:0px;text-transform:none;white-space:normal;wo= rd-spacing:0px">Cyril Scetbon



--
<= br>- John
--0000000000005b7f7b058f6b06d9--