Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AD944200C88 for ; Fri, 2 Jun 2017 18:11:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AB61B160BD2; Fri, 2 Jun 2017 16:11:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F1F5D160BD1 for ; Fri, 2 Jun 2017 18:11:08 +0200 (CEST) Received: (qmail 25593 invoked by uid 500); 2 Jun 2017 16:11:08 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 25582 invoked by uid 99); 2 Jun 2017 16:11:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jun 2017 16:11:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 950051A0861 for ; Fri, 2 Jun 2017 16:11:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id i-HWP4p9P0LE for ; Fri, 2 Jun 2017 16:11:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 0E03960D6D for ; Fri, 2 Jun 2017 16:11:06 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DD86FE0D6A for ; Fri, 2 Jun 2017 16:11:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 4495621B5C for ; Fri, 2 Jun 2017 16:11:04 +0000 (UTC) Date: Fri, 2 Jun 2017 16:11:04 +0000 (UTC) From: "Sergio Bossa (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-10130) Node failure during 2i update after streaming can have incomplete 2i when restarted MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 02 Jun 2017 16:11:09 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-10130?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D16034963#comment-16034963 ]=20 Sergio Bossa commented on CASSANDRA-10130: ------------------------------------------ bq. It's still possible that an index is created after the SSTableAddedNoti= fication but before all sstables are added to the tracker That made me also think of an ABA-like race, where a new index is registere= d _and built_ in-between the two notifications, causing it to miss the new-= to-be-added sstables. Weird stuff, and overall excellent points [~paulorica= rdomg]. Given most of the races come from the 2-phase event-based solution, I'd say= to simplify it in a way that still at least solves the original issue: tha= t is, keep just the {{SSTableAddedNotification}}, and mark the index buildi= ng/built around that; this will not protect against failures happening _whi= le_ adding SSTables, but again, it would at least solve the original proble= m of the index itself failing after adding the SSTables and missing to rebu= ild. Then, we can think about a more complete solution (i.e. one that doesn= 't rebuild the whole index because of a single failed stream) in another ti= cket. Thoughts? > Node failure during 2i update after streaming can have incomplete 2i when= restarted > -------------------------------------------------------------------------= ---------- > > Key: CASSANDRA-10130 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1013= 0 > Project: Cassandra > Issue Type: Bug > Components: Coordination > Reporter: Yuki Morishita > Assignee: Andr=C3=A9s de la Pe=C3=B1a > Priority: Minor > > Since MV/2i update happens after SSTables are received, node failure duri= ng MV/2i update can leave received SSTables live when restarted while MV/2i= are partially up to date. > We can add some kind of tracking mechanism to automatically rebuild at th= e startup, or at least warn user when the node restarts. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org For additional commands, e-mail: commits-help@cassandra.apache.org