You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@iceberg.apache.org by GitBox <gi...@apache.org> on 2018/12/11 00:42:14 UTC

[GitHub] rdblue opened a new pull request #45: Lazily submit tasks in ParallelIterable and add cancellation.

rdblue opened a new pull request #45: Lazily submit tasks in ParallelIterable and add cancellation.
URL: https://github.com/apache/incubator-iceberg/pull/45
 
 
   This removes the planner pool from ParallelIterable, which was used to
   submit all of the iterable tasks in parallel. This was used to queue
   up tasks to read every manifest in a snapshot. However, when a caller
   stopped reading early, all tasks would still run and add results to the
   queue.
   
   Now, tasks are submitted from the thread consuming the iterator as it
   runs hasNext. If the caller stops consuming the iterator, then no new
   tasks are submitted. This also keeps track of the submitted tasks and
   will cancel them when the iterator is closed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services