sachouche edited a comment on issue #1360: DRILL-6578: Handle query cancellation in Parquet reader URL: https://github.com/apache/drill/pull/1360#issuecomment-402226927 @vrozov, please confirm if this is what you are suggesting: boolean hasNext() { try { checkInterrupted(); } catch (InterruptedException) { throw new DrillRuntimeException(...); } same for next() NOTE - o If I throw InterruptedException within the loop, then this would mean I'll have to change the setSafe() APIs to also throw InterruptedException o This will be a bigger change as all consumer methods (of setSafe()) will also need to handle this exception
---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services