Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
2.7.4, 3.0.0-alpha2
-
None
Description
The following code failed to close the file after it is read.
FsVolumeImpl#loadLastPartialChunkChecksum
RandomAccessFile raf = new RandomAccessFile(metaFile, "r"); raf.seek(offsetInChecksum); raf.read(lastChecksum, 0, checksumSize); return lastChecksum;
This must be fixed because every append operation uses this piece of code. Without an explicit close, open files can reach system limit before RandomAccessFile objects are garbage collected.
Attachments
Attachments
Issue Links
- is broken by
-
HDFS-11056 Concurrent append and read operations lead to checksum error
- Resolved
- is depended upon by
-
HDFS-11160 VolumeScanner reports write-in-progress replicas as corrupt incorrectly
- Resolved
- is related to
-
HDFS-11160 VolumeScanner reports write-in-progress replicas as corrupt incorrectly
- Resolved