sachouche commented on a change in pull request #1470: DRILL-6746: Query can hang when PartitionSender task thread sees a co… URL: https://github.com/apache/drill/pull/1470#discussion_r219654096
########## File path: exec/java-exec/src/main/java/org/apache/drill/exec/work/batch/BaseRawBatchBuffer.java ########## @@ -129,17 +129,24 @@ public synchronized void kill(final FragmentContext context) { * responses pending */ private void clearBufferWithBody() { + RawFragmentBatch batch; while (!bufferQueue.isEmpty()) { - final RawFragmentBatch batch; + batch = null; try { batch = bufferQueue.poll(); assertAckSent(batch); } catch (IOException e) { context.getExecutorState().fail(e); continue; - } - if (batch.getBody() != null) { - batch.getBody().release(); + } catch (InterruptedException e) { Review comment: Good catch! ---------------------------------------------------------------- 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