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

QuotaRefresherChore doesn't update QuotaCache for user effectively

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Quotas
    • None

    Description

      Currently RegionServer record a user on their first RPC and trigger the QuotaCache refresh,

      https://github.com/apache/hbase/blob/8a6299bb387aaedcdab05224a462e63cd121fbb0/hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/QuotaCache.java#L136

      And QuotaRefresherChore refresh quota periodically for those users who are recorded by RegionServer on their first RPC, 

      https://github.com/apache/hbase/blob/8a6299bb387aaedcdab05224a462e63cd121fbb0/hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/QuotaCache.java#L284

       

      So even though user quota is set but it will be updated when user send RPC. Here each user will get 1 extra RPC in each RegionServer life and same will continue when got restarted. 

       

      We can enhance this by doing narrow scan on quota table to get the user specific quota

      Attachments

        Activity

          People

            pankajkumar Pankaj Kumar
            pankajkumar Pankaj Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: