vinothchandar commented on pull request #2440:
URL: https://github.com/apache/hudi/pull/2440#issuecomment-759773100


   No I was referring to the `BufferedFSInputStream` code here
   
   ```
   public HoodieLogFileReader(FileSystem fs, HoodieLogFile logFile, Schema 
readerSchema, int bufferSize,
         boolean readBlockLazily, boolean reverseReader) throws IOException {
       FSDataInputStream fsDataInputStream = fs.open(logFile.getPath(), 
bufferSize);
       if (fsDataInputStream.getWrappedStream() instanceof FSInputStream) {
         this.inputStream = new TimedFSDataInputStream(logFile.getPath(), new 
FSDataInputStream(
             new BufferedFSInputStream((FSInputStream) 
fsDataInputStream.getWrappedStream(), bufferSize)));
       } else {
         // fsDataInputStream.getWrappedStream() maybe a BufferedFSInputStream
         // need to wrap in another BufferedFSInputStream the make bufferSize 
work?
         this.inputStream = fsDataInputStream;
       }
   
       this.logFile = logFile;
       this.readerSchema = readerSchema;
       this.readBlockLazily = readBlockLazily;
       this.reverseReader = reverseReader;
       if (this.reverseReader) {
         this.reverseLogFilePosition = this.lastReverseLogFilePosition = 
fs.getFileStatus(logFile.getPath()).getLen();
       }
       addShutDownHook();
     }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to