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

SnapshotQuotaObserverChore should only fetch space quotas

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.2.0, 2.3.0
    • None

    Description

      In SnapshotQuotaObserverChore.getSnapshotsFromTables method, it fetches space quotas using the following filter:

      QuotaFilter filter = new QuotaFilter();
      filter.addTypeFilter(QuotaType.SPACE);
      

      but the QuotaType filter hasn't been implemented.

      And if there is throttle quotas in quota table, it will encounter Exception as follows:

      java.lang.IllegalStateException: Expected only one of namespace and tablename to be null
      
      at org.apache.hadoop.hbase.quotas.SnapshotQuotaObserverChore.getSnapshotsToComputeSize(SnapshotQuotaObserverChore.java:137)
      at org.apache.hadoop.hbase.quotas.TestSnapshotQuotaObserverChore.testSnapshotsFromNamespaces(TestSnapshotQuotaObserverChore.java:184)
      

      Attachments

        1. HBASE-21733.master.002.patch
          5 kB
          Yi Mei
        2. HBASE-21733.master.001.patch
          4 kB
          Yi Mei

        Issue Links

          Activity

            People

              meiyi Yi Mei
              meiyi Yi Mei
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: