Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-9919

Cleanup closeable iterator usage

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • 5.x
    • Legacy/Core
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            benedict Benedict Elliott Smith
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: