Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
3.0.0-alpha1
-
None
-
None
Description
public synchronized void close() throws IOException { dataIn.close(); if (checksumIn != null) { checksumIn.close(); } if (slowReadBuff != null) { bufferPool.returnBuffer(slowReadBuff); slowReadBuff = null; } if (checksumBuff != null) { bufferPool.returnBuffer(checksumBuff); checksumBuff = null; } startOffset = -1; checksum = null; }
If there's an IOException occurred in dataIn.close(), then the slowReadBuff&checksumBuff could not be returned anymore. let's make a trivial change to reduce this risk.
Attachments
Attachments
Issue Links
- is superceded by
-
HDFS-4538 allow use of legacy blockreader
- Resolved