Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-5900

HRegion#FIXED_OVERHEAD is miscalculated in 94.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.94.0
    • 0.94.0
    • regionserver
    • None

    Description

      After apply the patch of HBASE-5611, and tested on a 32-bit machine. This problem was triggered.
      Before this patch, TestHeapSize is passed by pure coincidence in 94.

        public static final long FIXED_OVERHEAD = ClassSize.align(
            ClassSize.OBJECT +
            ClassSize.ARRAY +
            30  * ClassSize.REFERENCE + Bytes.SIZEOF_INT +
            (6 * Bytes.SIZEOF_LONG) +
            Bytes.SIZEOF_BOOLEAN);
      

      Actually, there are 31 REFERENCEs and 5 LONGs in HRegion.

      Attachments

        1. HRegion-FIEED_OVERHEAD.patch
          5 kB
          Jieshan Bean

        Activity

          People

            jeason Jieshan Bean
            jeason Jieshan Bean
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: