HBase
  1. HBase
  2. HBASE-5900

HRegion#FIXED_OVERHEAD is miscalculated in 94.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

        Activity

        Jieshan Bean created issue -
        Jieshan Bean made changes -
        Field Original Value New Value
        Attachment HRegion-FIEED_OVERHEAD.patch [ 12525053 ]
        Jieshan Bean made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Ted Yu made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ted Yu made changes -
        Fix Version/s 0.94.0 [ 12316419 ]
        Fix Version/s 0.94.1 [ 12320257 ]
        Lars Hofhansl made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development