Github user parthchandra commented on a diff in the pull request:

    https://github.com/apache/drill/pull/723#discussion_r98289478
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/util/filereader/DirectBufInputStream.java
 ---
    @@ -81,7 +87,15 @@ public synchronized int read(DrillBuf buf, int off, int 
len) throws IOException
         ByteBuffer directBuffer = buf.nioBuffer(0, len);
         int lengthLeftToRead = len;
         while (lengthLeftToRead > 0) {
    -      lengthLeftToRead -= CompatibilityUtil.getBuf(getInputStream(), 
directBuffer, lengthLeftToRead);
    +      logger.trace("PERF: Disk read start. {}, StartOffset: {}, 
TotalByteSize: {}", this.streamId,
    +          this.startOffset, this.totalByteSize);
    +      Stopwatch timer = Stopwatch.createStarted();
    +      int bytesRead = CompatibilityUtil.getBuf(getInputStream(), 
directBuffer, lengthLeftToRead);
    +      lengthLeftToRead -= bytesRead;
    +      logger.trace(
    --- End diff --
    
    Done


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to