eclipse-rdf4j / rdf4j

Eclipse RDF4J: scalable RDF for Java
https://rdf4j.org/
BSD 3-Clause "New" or "Revised" License
367 stars 164 forks source link

GroupIterator doesn't close child iterator #5159

Closed frensjan closed 3 weeks ago

frensjan commented 4 weeks ago

Current Behavior

When a query times out, the current iteration is closed from a timer thread. However, if GroupIterator is closed while it is building it's entries (in buildEntries), this close signal doesn't propagate to it's argument.

Expected Behavior

The iterator from which the entries of GroupIterator should be closed.

Steps To Reproduce

No response

Version

4.3.8

Are you interested in contributing a solution yourself?

Yes, see PR