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

SpaceQuotas - getNumRegions() returning wrong number of regions due to region replicas

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      Space Quota: Space Quota Issue: If a table is created with region replica then quota calculation is not happening

      Steps:

      1: Create a table with 100 regions with region replica 3

      2: Observe that 'hbase:quota' table doesn't have entry of usage for this table So In UI only policy Limit and Policy is shown but not Usage and State.

      Reason:

      It looks like File system utilization core is sending data of 100 reasons but not the size of region replicas.

      But in quota observer chore, it is considering total region(actual regions+ replica reasons)

      So the ratio of reported regions is less then configured percentRegionsReportedThreshold.
      SO quota calculation is not happening

      Attachments

        1. hbase-22013.branch-2.001.patch
          8 kB
          Sakthi
        2. HBASE-22013.branch-2.1.001.patch
          8 kB
          Sakthi
        3. hbase-22013.branch-2.2.001.patch
          9 kB
          Sakthi
        4. HBASE-22013.master.001.patch
          6 kB
          Shardul Singh
        5. HBASE-22013.master.002.patch
          7 kB
          Shardul Singh
        6. HBASE-22013.master.003.patch
          7 kB
          Shardul Singh

        Issue Links

          Activity

            People

              shardulsingh Shardul Singh
              a00408367 Ajeet Rai
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: