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 DD6B818773 for ; Mon, 2 Nov 2015 18:55:40 +0000 (UTC) Received: (qmail 42925 invoked by uid 500); 2 Nov 2015 18:55:28 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 42889 invoked by uid 500); 2 Nov 2015 18:55:28 -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 42825 invoked by uid 99); 2 Nov 2015 18:55:28 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Nov 2015 18:55:28 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D776A2C1F6E for ; Mon, 2 Nov 2015 18:55:27 +0000 (UTC) Date: Mon, 2 Nov 2015 18:55:27 +0000 (UTC) From: "Andre Turgeon (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CASSANDRA-10358) Allow CQLSSTableWriter.Builder to use custom AbstractSSTableSimpleWriter 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-10358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14985731#comment-14985731 ] Andre Turgeon edited comment on CASSANDRA-10358 at 11/2/15 6:54 PM: -------------------------------------------------------------------- Thanks for the feedback [~slebresne]. I forgot to mention another requirement I have: I need to control the level at which a SSTable is created. How would you feel about having a SSTableWriter creation strategy? Something like this: {noformat} public interface SSTableWriterCreationStrategy { SSTableWriter createWriter(File directory, CFMetaData metadata); } {noformat} I submitted a patch with more details. was (Author: symbiosix): Thanks for the feedback [~slebresne]. I forgot to mention another requirement I have: I need to control the level at which a SSTable is created. How would you feel about having a SSTableWriter creation strategy? Something like this: {quote} public interface SSTableWriterCreationStrategy { SSTableWriter createWriter(File directory, CFMetaData metadata); } {quote} I submitted a patch with more details. > Allow CQLSSTableWriter.Builder to use custom AbstractSSTableSimpleWriter > ------------------------------------------------------------------------- > > Key: CASSANDRA-10358 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10358 > Project: Cassandra > Issue Type: Improvement > Reporter: Andre Turgeon > Priority: Minor > Attachments: SSTableWriterCreationStrategy.patch, patch.txt > > > I've created a patch for your consideration. > This change to CQLSSTableWriter allows for a custom AbstractSSTableSimpleWriter to be specified. > I needed this for a bulkload process I wrote. I believe the change would be beneficial for other people as well. > Below are the reasons I needed a custom implementation of AbstractSSTableSimpleWriter: > 1) The available implementations of AbstractSSTableSimpleWriter do not provide a way to specify the filename (or rather revision) of the sstable. I needed to control the name because my bulkload process write sstables in parallel (on multiple machines) and I wish to avoid name collisions. > 2) I discovered a problem with SSTableSimpleUnsortedWriter where it creates invalid level-compaction-style sstables; It allows a partition to span 2 sstables which violates the "no overlap of token ranges" constraint of level compaction. -- This message was sent by Atlassian JIRA (v6.3.4#6332)