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 CD60F200C8C for ; Tue, 6 Jun 2017 13:46:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CC244160BDE; Tue, 6 Jun 2017 11:46:23 +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 1ECD3160BC3 for ; Tue, 6 Jun 2017 13:46:22 +0200 (CEST) Received: (qmail 38542 invoked by uid 500); 6 Jun 2017 11:46:22 -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 38520 invoked by uid 99); 6 Jun 2017 11:46:22 -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 Jun 2017 11:46:22 +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 C457B182883 for ; Tue, 6 Jun 2017 11:46:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id VyswxnkjgNQP for ; Tue, 6 Jun 2017 11:46:20 +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 5BEDA60DEB for ; Tue, 6 Jun 2017 11:46:20 +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 39145E0DC9 for ; Tue, 6 Jun 2017 11:46:19 +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 8CB5921E11 for ; Tue, 6 Jun 2017 11:46:18 +0000 (UTC) Date: Tue, 6 Jun 2017 11:46:18 +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: Tue, 06 Jun 2017 11:46:24 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-10130?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D16038692#comment-16038692 ]=20 Sergio Bossa commented on CASSANDRA-10130: ------------------------------------------ bq. Sorry for being picky here but while we are fixing the original limitat= ion, we are introducing a new limitation that if there's ever a non-fatal i= ndex build failure, a successful full index rebuild will not mark the index= as built until the node is restarted and the index is unnecessarily rebuil= t. Excellent point, you're not being picky at all. There's actually a related = problem: if a single sstable indexing fails, we restart the node, and try t= o load a *new* sstable, the index will be marked as built, even if there's = an sstable whose indexing failed. In other words, it seems to me we should mark the index as built _only_ if: 1) It is a full rebuild. 2) It is an initialization task (which should be considered as the initial = full build). 3) It is a single/group sstable(s) indexing, and the index was *already bui= lt*: that is, if we initiate an sstable indexing, but the index was *not* m= arked as built, we should preserve such state (that implementation-wise pro= bably means to just keep the counters at 0 and avoid any marking). Other than that, I have a concern about [flushing indexes in the future tra= nsformation|https://github.com/apache/cassandra/compare/trunk...adelapena:1= 0130-trunk#diff-3f2c8994c4ff8748c3faf7e70958520dR399], which would cause su= ch blocking activity to happen in the compaction thread, a departure from p= revious behaviour and probably an unwanted one. > 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