singhpk234 commented on code in PR #16768:
URL: https://github.com/apache/iceberg/pull/16768#discussion_r3470515439
##########
core/src/main/java/org/apache/iceberg/rest/ScanTaskIterable.java:
##########
@@ -103,11 +104,15 @@ private void submitFixedWorkers() {
@Override
public CloseableIterator<FileScanTask> iterator() {
- return new ScanTasksIterator();
+ ScanTasksIterator iter = new ScanTasksIterator();
+ addCloseable(iter);
+ return iter;
}
@Override
- public void close() throws IOException {}
+ public void close() throws IOException {
+ super.close();
+ }
Review Comment:
why just to override to call super.close() ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]