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 70AC2200CEC for ; Mon, 21 Aug 2017 12:56:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6D746164E9E; Mon, 21 Aug 2017 10:56:15 +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 B3552164E8A for ; Mon, 21 Aug 2017 12:56:14 +0200 (CEST) Received: (qmail 5447 invoked by uid 500); 21 Aug 2017 10:56:07 -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 5436 invoked by uid 99); 21 Aug 2017 10:56:07 -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; Mon, 21 Aug 2017 10:56:07 +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 6963B180314 for ; Mon, 21 Aug 2017 10:56:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Q3dje0KrTqKn for ; Mon, 21 Aug 2017 10:56:04 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id D417C61127 for ; Mon, 21 Aug 2017 10:56:02 +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 1F234E03EE for ; Mon, 21 Aug 2017 10:56:02 +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 A12A225396 for ; Mon, 21 Aug 2017 10:56:00 +0000 (UTC) Date: Mon, 21 Aug 2017 10:56:00 +0000 (UTC) From: "mck (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CASSANDRA-13418) Allow TWCS to ignore overlaps when dropping fully expired sstables MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 21 Aug 2017 10:56:15 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-13418?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D16135028#comment-16135028 ]=20 mck edited comment on CASSANDRA-13418 at 8/21/17 10:55 AM: ----------------------------------------------------------- [~rgerard], Initial review comments:=20 - {{CHANGES.txt}} needs a line - is this suitable for 3.11.x as well? (Does it constitute a stability pat= ch? i think so, but that's an opinion) - is the method {{TWCSCompactionController.getFullyExpiredSSTables(..)}} r= eally needed? (CompactionController:170 seems to do what we need already, o= r am i missing something?) - {{CompactionController.ignoreOverlaps()}} is a bit of a concept, it dese= rves some apidoc love. Trivial stuff=E2=80=A6 - CompactionController:108 missing space in {{if(}}, same on :170 - CompactionController:232 any reason not to return an immutable set? - TWCSCompactionController:29 needs a blank line after - TWCSCompactionController:33 java declaration order. (static fields go be= fore member fields) - TimeWindowCompactionStrategy:70 missing space in {{if(}} was (Author: michaelsembwever): [~rgerard], Initial review comments:=20 - {{CHANGES.txt}} needs a line - is this suitable for 3.11.x as well? (Does it constitute a stability pat= ch? i think so, but that's an opinion) - is the method {{TWCSCompactionController.getFullyExpiredSSTables(..)}} r= eally needed? (CompactionController:170 seems to do what we need already) - {{CompactionController.ignoreOverlaps()}} is a bit of a concept, it dese= rves some apidoc love. Trivial stuff=E2=80=A6 - CompactionController:108 missing space in {{if(}}, same on :170 - CompactionController:232 any reason not to return an immutable set? - TWCSCompactionController:29 needs a blank line after - TWCSCompactionController:33 java declaration order. (static fields go be= fore member fields) - TimeWindowCompactionStrategy:70 missing space in {{if(}} > Allow TWCS to ignore overlaps when dropping fully expired sstables > ------------------------------------------------------------------ > > Key: CASSANDRA-13418 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1341= 8 > Project: Cassandra > Issue Type: Improvement > Components: Compaction > Reporter: Corentin Chary > Labels: twcs > Attachments: twcs-cleanup.png > > > http://thelastpickle.com/blog/2016/12/08/TWCS-part1.html explains it well= . If you really want read-repairs you're going to have sstables blocking th= e expiration of other fully expired SSTables because they overlap. > You can set unchecked_tombstone_compaction =3D true or tombstone_threshol= d to a very low value and that will purge the blockers of old data that sho= uld already have expired, thus removing the overlaps and allowing the other= SSTables to expire. > The thing is that this is rather CPU intensive and not optimal. If you ha= ve time series, you might not care if all your data doesn't exactly expire = at the right time, or if data re-appears for some time, as long as it gets = deleted as soon as it can. And in this situation I believe it would be real= ly beneficial to allow users to simply ignore overlapping SSTables when loo= king for fully expired ones. > To the question: why would you need read-repairs ? > - Full repairs basically take longer than the TTL of the data on my datas= et, so this isn't really effective. > - Even with a 10% chances of doing a repair, we found out that this would= be enough to greatly reduce entropy of the most used data (and if you have= timeseries, you're likely to have a dashboard doing the same important que= ries over and over again). > - LOCAL_QUORUM is too expensive (need >3 replicas), QUORUM is too slow. > I'll try to come up with a patch demonstrating how this would work, try i= t on our system and report the effects. > cc: [~adejanovski], [~rgerard] as I know you worked on similar issues alr= eady. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org For additional commands, e-mail: commits-help@cassandra.apache.org