[ https://issues.apache.org/jira/browse/HDFS-6349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Nauroth resolved HDFS-6349. --------------------------------- Resolution: Duplicate Hi, [~kihwal]. This same issue is tracked in HDFS-5995, so I'm resolving HDFS-6349 as duplicate. There is a lot of discussion and a proposed patch on the other issue, but no concrete resolution yet. > Bound checks missing in FSEditLogOp.AclEditLogUtil > -------------------------------------------------- > > Key: HDFS-6349 > URL: https://issues.apache.org/jira/browse/HDFS-6349 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 2.5.0 > Reporter: Kihwal Lee > > 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. > {panel} > 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\] > {panel} -- This message was sent by Atlassian JIRA (v6.2#6252)