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

Print error message when user uses unacceptable values for LIMIT while setting quotas.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.2.0, 2.1.3, 2.0.5, 2.3.0
    • None
    • None

    Description

      When unacceptable value(like 2.3G or 70H) to LIMITĀ areĀ passed while setting quotas, we currently do not print any error message (informing the user about the erroneous input). Like below:

      hbase(main):002:0> set_quota TYPE => SPACE, TABLE => 't2', LIMIT => '2.3G', POLICY => NO_WRITES
      Took 0.0792 seconds
      hbase(main):003:0> list_quotas
      OWNER                                                        QUOTAS
       TABLE => t2                                                 TYPE => SPACE, TABLE => t2, LIMIT => 2B, VIOLATION_POLICY => NO_WRITES
      1 row(s)
      Took 0.0512 seconds
      hbase(main):006:0> set_quota TYPE => SPACE, TABLE => 't2', LIMIT => '70H', POLICY => NO_WRITES
      Took 0.0088 seconds
      hbase(main):007:0> list_quotas
      OWNER                                                        QUOTAS
       TABLE => t2                                                 TYPE => SPACE, TABLE => t2, LIMIT => 70B, VIOLATION_POLICY => NO_WRITES
      1 row(s)
      Took 0.0448 seconds
      

      Attachments

        1. hbase-21634.branch-2.0.001.patch
          7 kB
          Sakthi
        2. hbase-21634.branch-2.0.002.patch
          7 kB
          Sakthi
        3. hbase-21634.master.001.patch
          3 kB
          Sakthi
        4. hbase-21634.master.002.patch
          4 kB
          Sakthi
        5. hbase-21634.master.003.patch
          6 kB
          Sakthi
        6. hbase-21634.master.004.patch
          7 kB
          Sakthi

        Activity

          People

            sakthi Sakthi
            sakthi Sakthi
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: