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

HRegion#FIXED_OVERHEAD is miscalculated in 94.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.94.0
    • Fix Version/s: 0.94.0
    • Component/s: regionserver
    • Labels:
      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

          Activity

            People

            • Assignee:
              jeason Jieshan Bean
              Reporter:
              jeason Jieshan Bean
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: