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

Space quota: Usage is not calculated correctly if snapshot is created on a table then table is deleted and created again

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Steps to reproduce:

      1: ./hbase pe --table="bugatti" --nomapred --rows=400 sequentialWrite 10 (will put 4 mb data)
      2: set_quota TYPE => SPACE, TABLE => 'bugatti', LIMIT => '7M', POLICY => NO_WRITES_COMPACTIONS
      3: snapshot 'bugatti','bugatti_snapshot'
      4: disable 'bugatti'
      5: drop 'bugatti'
      6: create 'bugatti','info0'
      7: set_quota TYPE => SPACE, TABLE => 'bugatti', LIMIT => '5M', POLICY => NO_WRITES_COMPACTIONS
      8: scan 'bugatti'
      >> Observe that no data here and original snapshot size was 4 MB. but current usage is shown as 8 MB

      Attachments

        Activity

          People

            Unassigned Unassigned
            a00408367 Ajeet Rai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: