You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Yuki Morishita (Updated) (JIRA)" <ji...@apache.org> on 2012/04/17 21:47:16 UTC

[jira] [Updated] (CASSANDRA-3946) BulkRecordWriter shouldn't stream any empty data/index files that might be created at end of flush

     [ https://issues.apache.org/jira/browse/CASSANDRA-3946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yuki Morishita updated CASSANDRA-3946:
--------------------------------------

    Attachment: 0001-Abort-SSTableWriter-when-exception-occured.patch

The only way bulk writer writes 0 size sstable is when bad thing happens during writing.
Attached patch makes sure writer get aborted so that incomplete files are removed when exception happend during writes. In order to do this, I have to let SSTableWriter create "temp" file, but it should be OK since closeAndOpenReader renames file.
                
> BulkRecordWriter shouldn't stream any empty data/index files that might be created at end of flush
> --------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3946
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3946
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Chris Goffinet
>            Assignee: Yuki Morishita
>            Priority: Minor
>             Fix For: 1.1.1
>
>         Attachments: 0001-Abort-SSTableWriter-when-exception-occured.patch, 0001-CASSANDRA-3946-BulkRecordWriter-shouldn-t-stream-any.patch
>
>
> If by chance, we flush sstables during BulkRecordWriter (we have seen it happen), I want to make sure we don't try to stream them.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira