Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
2.5.0
-
None
-
None
-
None
Description
AclEditLogUtil.read() can throw OutOfMemoryException when it encounters a certain corrupt entry. This is because it reads the size and blindly tries to allocate an ArrayList of that size.
Because of this a test case always dumps the heap. The test doesn't fail since edit log loading catches and "handles" the exception.
Running org.apache.hadoop.hdfs.server.namenode.TestNameNodeRecovery
java.lang.OutOfMemoryError: Java heap space
Dumping heap to java_pid18667.hprof ...
Heap dump file created [43870820 bytes in 0.154 secs]
Attachments
Issue Links
- duplicates
-
HDFS-5995 TestFSEditLogLoader#testValidateEditLogWithCorruptBody gets OutOfMemoryError and dumps heap.
- Resolved