drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From parthchandra <...@git.apache.org>
Subject [GitHub] drill pull request #723: DRILL-5207: Improve Parquet Scan pipelining.
Date Sat, 28 Jan 2017 00:44:01 GMT
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message