HDDS-627. OzoneFS read from an MR Job throws java.lang.ArrayIndexOutOfBoundsException. Contributed by Mukul Kumar Singh.
This commit is contained in:
parent
6dcfef79af
commit
c05b260069
@ -129,7 +129,8 @@ public synchronized int read(byte[] b, int off, int len) throws IOException {
|
||||
totalReadLen += numBytesRead;
|
||||
off += numBytesRead;
|
||||
len -= numBytesRead;
|
||||
if (current.getRemaining() <= 0) {
|
||||
if (current.getRemaining() <= 0 &&
|
||||
((currentStreamIndex + 1) < streamEntries.size())) {
|
||||
currentStreamIndex += 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user