You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Keith Turner (JIRA)" <ji...@apache.org> on 2016/05/31 23:25:12 UTC
[jira] [Commented] (ACCUMULO-4318) Make BatchWriter,
ConditionalWriter, and ScannerBase extend AutoCloseable
[ https://issues.apache.org/jira/browse/ACCUMULO-4318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15308844#comment-15308844 ]
Keith Turner commented on ACCUMULO-4318:
----------------------------------------
For the record I made a commit against against this issue that was supposed to be for ACCUMULO-4314.
> Make BatchWriter, ConditionalWriter, and ScannerBase extend AutoCloseable
> -------------------------------------------------------------------------
>
> Key: ACCUMULO-4318
> URL: https://issues.apache.org/jira/browse/ACCUMULO-4318
> Project: Accumulo
> Issue Type: Improvement
> Reporter: Keith Turner
> Assignee: Keith Turner
> Fix For: 1.8.0
>
> Time Spent: 2h
> Remaining Estimate: 0h
>
> BatchWriter, ConditionalWriter, Scanner, and BatchScanner all have close Methods. Howerver because they do not implement AutoCloseable they can not be used with try-with-resources.
> It would be simple to add AutoCloseable to all of these. I think this change should only be made in a minor release because it allows writing code that will not work with older versions.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)