Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-6349

Bound checks missing in FSEditLogOp.AclEditLogUtil

    XMLWordPrintableJSON

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

          Activity

            People

              Unassigned Unassigned
              kihwal Kihwal Lee
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: