accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Turner (JIRA)" <>
Subject [jira] [Commented] (ACCUMULO-1280) Add close method to iterators
Date Tue, 28 Mar 2017 16:39:42 GMT


Keith Turner commented on ACCUMULO-1280:

We have found with [PR#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:
>             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

View raw message