accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From milleruntime <>
Subject [GitHub] accumulo pull request #159: ACCUMULO-1280: many changes for closing iterator...
Date Fri, 14 Oct 2016 14:03:09 GMT
Github user milleruntime commented on a diff in the pull request:
    --- Diff: core/src/main/java/org/apache/accumulo/core/iterators/ ---
    @@ -249,4 +268,9 @@ final public boolean hasTop() {
       public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String>
options, IteratorEnvironment env) throws IOException {
         throw new UnsupportedOperationException();
    +  @Override
    +  public void close() throws Exception {
    +    sources.forEach(s -> s.closeSafely());
    +  }
    --- End diff --
    For exception handling of multiple sources, you thinking of not using forEach and going
old school loop?

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message