[
https://issues.apache.org/jira/browse/CASSANDRA-2906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067392#comment-13067392
]
Stu Hood commented on CASSANDRA-2906:
-------------------------------------
You can actually return the reader object from inside the {{try, finally}}: the
finally block isn't executed until after the return statement. See the uses of
cleanupIfNecessary in SSTableWriter.Builder for an example.
> Streaming SSTable build does not use cleanupIfNecessary
> -------------------------------------------------------
>
> Key: CASSANDRA-2906
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2906
> Project: Cassandra
> Issue Type: Bug
> Reporter: Stu Hood
> Priority: Minor
> Fix For: 1.0
>
> Attachments: trunk-2906.txt
>
>
> The new streaming sstable rebuilding in IncomingStreamReader needs to wrap
> things in with {{try, finally, cleanupIfNecessary}} to ensure that the writer
> is cleaned up properly.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira