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

Unboxing long value in old version's block report cause full GC

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      When upgrade cluster from 2.6 to 3.1, namenode fall into full GC trouble.

      NN run 3.1 version and DN run 2.6 version, block report type is longs not PB introduced by https://issues.apache.org/jira/browse/HDFS-7435 . So it's run into LongDecoder.

      We find change org.apache.hadoop.hdfs.protocol.BlockListAsLongs.LongsDecoder#values type from List<Long> to long[] can fix the issue, but I can't for sure that the Long unboxing cause full GC problem.

      Attachments

        Issue Links

          Activity

            People

              John Smith Yuxuan Wang
              John Smith Yuxuan Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m