We're updating the issue view to help you get more done. 

RespositoryResult/ClosableIterationBase asList(), asSet() and addTo() don't close the underlying iterator

Description

The implementation of addTo that was added to CloseableIterationBase in 2.7.0-beta1 does not properly close the iterator when the iteration is complete and thus no longer follows the specification of the interface. As a consequence, there are remaining open connections when using any of asList, asSet or addTo on a ResultSet.

The RepositoryResult implementation of the old 2.6.10 release still had the correct implementation of addTo().

Environment

None

Status

Assignee

JeenB

Reporter

Sebastian Schaffert

Labels

Components

Fix versions

Affects versions

2.7.0-beta1

Priority

Critical