Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9144719495 for ; Thu, 21 Apr 2016 18:00:29 +0000 (UTC) Received: (qmail 93122 invoked by uid 500); 21 Apr 2016 18:00:29 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 93073 invoked by uid 500); 21 Apr 2016 18:00:29 -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 93011 invoked by uid 99); 21 Apr 2016 18:00:29 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Apr 2016 18:00:29 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 481352C1F5A for ; Thu, 21 Apr 2016 18:00:29 +0000 (UTC) Date: Thu, 21 Apr 2016 18:00:29 +0000 (UTC) From: "Yuki Morishita (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-11579) remove DatabaseDescriptor dependency from SequentialWriter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-11579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15252357#comment-15252357 ] Yuki Morishita commented on CASSANDRA-11579: -------------------------------------------- Updated branch and tests were run. * Renamed methods/class in {{SequentialWriterOption}} * Move option to constant in {{ChecksummedSequentialWriter}}/{{OnDiskIndexBuilder}} * Changed to hold ref to {{SequentialWriterOption}} in {{SequentialWriter}} instead of copying values. I kept {{Optional}} for {{digestFile}} since the value can be null. {{SSTablesIteratedTest}} was failed in testall, but in local, the test runs fine. bq. Regarding your comment for trickleFsync in the description, I don't see the actual change. Can you give me a heads-up? Right now, when {{tricleFsync}} is on, all writes using {{SequentialWriter}} like CRC can trickle also. But writing CRC is small so you don't need to {{trickleFsync}}. I left setting {{trickleFsync}} in new {{SequentialWriterOption}} in those situation. > remove DatabaseDescriptor dependency from SequentialWriter > ---------------------------------------------------------- > > Key: CASSANDRA-11579 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11579 > Project: Cassandra > Issue Type: Sub-task > Reporter: Yuki Morishita > Assignee: Yuki Morishita > Priority: Minor > > {{SequentialWriter}} and its subclass is widely used in Cassandra, mainly from SSTable. Removing dependency to {{DatabaseDescriptor}} improve reusability of this class. -- This message was sent by Atlassian JIRA (v6.3.4#6332)