leixm commented on issue #239:
URL:
https://github.com/apache/incubator-uniffle/issues/239#issuecomment-1255774299
org.apache.uniffle.storage.handler.impl.HdfsFileReader#read
```
public byte[] read(long offset, int length) {
try {
fsDataInputStream.seek(offset);
byte[] buf = new byte[length];
fsDataInputStream.readFully(buf);
return buf;
} catch (Exception e) {
LOG.warn("Can't read data for path:" + path + " with offset["
+ offset + "], length[" + length + "]", e);
}
return new byte[0];
}
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]