You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "C. Scott Andreas (JIRA)" <ji...@apache.org> on 2018/11/18 18:09:01 UTC

[jira] [Updated] (CASSANDRA-9919) Cleanup closeable iterator usage

     [ https://issues.apache.org/jira/browse/CASSANDRA-9919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

C. Scott Andreas updated CASSANDRA-9919:
----------------------------------------
    Component/s: Core

> Cleanup closeable iterator usage
> --------------------------------
>
>                 Key: CASSANDRA-9919
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9919
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Benedict
>            Priority: Major
>             Fix For: 4.x
>
>
> Our iterators are all sensibly AutoCloseable, but we still have a lot of places where we close the iterator if we reach the end in next() / hasNext(). ThIs behaviour will only mask problems, as any exceptions in normal processing will miss these pathways. Since we much more heavily depend on iterators now, we need to be certain they are rock solid. So I would prefer we remove our crutches and work through any pain earlier.
> CASSANDRA-9918 can then help us catch any misuse more easily.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org