GroupIterator handleClose doesn't close the internal iterator from buildEntries

Description

This prevents the logic for maxExecutionTime in AbstractQuery to work as expected. The problem is that TimeLimitIteration might close the group iterator in another thread but this won't close the iterator that was created from the group argument in GroupIterator#buildEntries.
The internal iterator will continue to iterator over entries and the query won't be stopped as expected.

Environment

None

Assignee

Jeen Broekstra

Reporter

Nikola Petrov

Labels

None

Affects versions

Priority

Major
Configure