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 2017/03/28 16:39:42 UTC
[jira] [Commented] (ACCUMULO-1280) Add close method to iterators
[ https://issues.apache.org/jira/browse/ACCUMULO-1280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15945505#comment-15945505 ]
Keith Turner commented on ACCUMULO-1280:
----------------------------------------
We have found with [PR#159|https://github.com/apache/accumulo/pull/159] that trying to add {{close()}} to iterators has many sharp edges for us and users. Another approach to solve this problem is to add a {{addCleanupAction(Runnable)}} method to {{IteratorEnvironment}}. This allows the iterator to add clean up actions that will be called when Accumulo is finished with the iterator.
> Add close method to iterators
> -----------------------------
>
> Key: ACCUMULO-1280
> URL: https://issues.apache.org/jira/browse/ACCUMULO-1280
> Project: Accumulo
> Issue Type: Improvement
> Reporter: Keith Turner
> Assignee: Michael Miller
> Fix For: 2.0.0
>
> Time Spent: 10h 40m
> Remaining Estimate: 0h
>
> It would be useful if Accumulo iterators had a close method. Accumulo would call this when its finished using the iterator stack.
> How would this work w/ isolation?
> Is it ok to break the iterator API?
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)