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 5BF64200C2A for ; Wed, 1 Mar 2017 16:51:27 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5A7F3160B70; Wed, 1 Mar 2017 15:51:27 +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 9E233160B5E for ; Wed, 1 Mar 2017 16:51:26 +0100 (CET) Received: (qmail 53701 invoked by uid 500); 1 Mar 2017 15:51:25 -0000 Mailing-List: contact dev-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 dev@cassandra.apache.org Received: (qmail 53689 invoked by uid 99); 1 Mar 2017 15:51:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Mar 2017 15:51:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id B0605C0ABA for ; Wed, 1 Mar 2017 15:51:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.398 X-Spam-Level: ** X-Spam-Status: No, score=2.398 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id zgPOPjEUA9qg for ; Wed, 1 Mar 2017 15:51:22 +0000 (UTC) Received: from mail-vk0-f48.google.com (mail-vk0-f48.google.com [209.85.213.48]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id B62935F1EE for ; Wed, 1 Mar 2017 15:51:21 +0000 (UTC) Received: by mail-vk0-f48.google.com with SMTP id t8so11416054vke.3 for ; Wed, 01 Mar 2017 07:51:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=QDoMbZfFNWNcSVHUYjgKbbYfiPyPlu9THJSAMJfeN3s=; b=PpBEnx0l0DoXs8yt0aNbUTgKPfDYkB61iMgcY8Qtmpu7r58ZFu3Lr1/QhZlM11DDqJ yjXjP37dPVAcCqXpgUCUytvI0RZEZtLZCjnj9yeIYkDuczx2PHcZfM02Gvu/3dFkb+Pm fc61tDMKHBJ5aEqwa+cLz/nsSeqmvGuTYzMsp56ql7zx/1C1jWX9iurI/fLkNyihLho4 t1OFCSq8kdd24pEXX4WJfe1ldPQ3gwOE8AVpbkRILRIJC5IhbiT3MdkO9SX1iDSEqeNt JS8smnFI9Lf2Wn5u7CQRfw56z7hhx8GqP8j0oukhPh2G96Uvoj4pYOeUT8hfZwba6UI0 tFOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=QDoMbZfFNWNcSVHUYjgKbbYfiPyPlu9THJSAMJfeN3s=; b=XtkxhcI8UwcaQoUUTclsxgz+OLmu8tiX0gCZrJqo9k5QYvY2VSEuvFrnAH8u6qLbSM uiSqH7tHLhPoAT6W81qM8SZ4WaMV1qtYNbMxXuLhCTBDPriZTXebDG3j6mwV2izTexiS T2z0RcXhMbu0bjcptu0T5TUPVtCS4cKmcY8BGKWtI1CBIPAyXnEezYQvIygOOPw7M6lP DxfFoTsjRtvA9D7mjwjXbIOROUCvJVplZyu4rQPoGUiICnum9daDb+/4vk++hgirjGog l1GNexUnf4e3O4XxRFYsCZ1xO+lgZer5jBcuVtAmqnqrPzhoxSsrlrqSCP1W345dsiip oJ4Q== X-Gm-Message-State: AMke39naltIoyd6YE3sseoVnMneXlHALZNY9ugkUxAUDj7u9+r2/7Lp3ExVHV3W0M5hAieDGtHxrsjik+LDWJw== X-Received: by 10.31.217.7 with SMTP id q7mr622765vkg.32.1488383478562; Wed, 01 Mar 2017 07:51:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.164.66 with HTTP; Wed, 1 Mar 2017 07:51:17 -0800 (PST) From: benjamin roth Date: Wed, 1 Mar 2017 16:51:17 +0100 Message-ID: Subject: Need feedback on CASSANDRA-13066 To: dev@cassandra.apache.org Content-Type: multipart/alternative; boundary=94eb2c07c4108785a30549ad489b archived-at: Wed, 01 Mar 2017 15:51:27 -0000 --94eb2c07c4108785a30549ad489b Content-Type: text/plain; charset=UTF-8 Hi guys, I started working on 13066. My intention is to offer a table-setting that allows a operator to optimize MV streaming in some cases or simply "on purpose - i know what i do". MV write path streaming can be ommitted e.g. if: - data is append only - no PK is added to MV so no stale data can be created on race conditions This is a first patch: https://github.com/Jaumo/cassandra/commit/0d4ce966f129e1b29098f194b5951a86dc8c585a Please don't consider it as final. Some tests are missing and some logic is still missing. When introducing a table option what would be to prefer: - mv_fast_stream: Does what it says, maybe even a more verbose name? - append_only: To tell how data is filled. This could also be a hint for future optimizations like CASSANDRA-9779 but would not allow me just to tell CS to do that kind of streaming no matter how I treat my data Also still to be considered in this ticket: - With "fast streaming" MVs MUST be repaired separately and explicitly - With "write path repairs" MVs MUST NOT be included in KS repairs. Not only that this is unnecessary repair-work - it could (or probably will) break the local consistency between base table and MV. - Manual of views that are normally repaired through the write path of the base table should at least log a warning like "Manually repairing a material view may lead to inconsistencies" I'd really love to get some feedback before putting more effort in. Thanks! --94eb2c07c4108785a30549ad489b--