Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ private void readDataForDecoding() throws IOException {
checkMissingBlocks();
}

void readParityChunks(int num) throws IOException {
private void readParityChunks(int num) throws IOException {
for (int i = dataBlkNum, j = 0; i < dataBlkNum + parityBlkNum && j < num;
i++) {
if (alignedStripe.chunks[i] == null) {
Expand Down Expand Up @@ -298,7 +298,7 @@ private Callable<BlockReadStats> readCells(final BlockReader reader,
};
}

boolean readChunk(final LocatedBlock block, int chunkIndex)
private boolean readChunk(final LocatedBlock block, int chunkIndex)
throws IOException {
final StripingChunk chunk = alignedStripe.chunks[chunkIndex];
if (block == null) {
Expand Down Expand Up @@ -353,7 +353,7 @@ void readStripe() throws IOException {
readParityChunks(alignedStripe.missingChunksNum);
}
} catch (IOException e) {
dfsStripedInputStream.close();
dfsStripedInputStream.closeCurrentBlockReaders();
throw e;
}
// TODO: for a full stripe we can start reading (dataBlkNum + 1) chunks
Expand Down Expand Up @@ -397,7 +397,7 @@ void readStripe() throws IOException {
} catch (InterruptedException ie) {
String err = "Read request interrupted";
DFSClient.LOG.error(err, ie);
dfsStripedInputStream.close();
dfsStripedInputStream.closeCurrentBlockReaders();
clearFutures();
// Don't decode if read interrupted
throw new InterruptedIOException(err);
Expand Down
Loading