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

list_labels shouldn't raise ArgumentError if no labels are defined

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.98.14, 1.0.2, 1.2.0, 1.1.2, 1.3.0, 2.0.0
    • None
    • None
    • Reviewed

    Description

      list_labels shouldn't raise ArgumentError if no labels are defined. The empty list is a valid return case, and anyway ArgumentError should be used when arguments to the command are erroneous. Here the command is well formed:

      hbase(main):001:0> list_labels
      
      ERROR: No auth label defined
      
      Here is some help for this command:
      List the visibility labels defined in the system.
      Optional regular expression parameter could be used to filter the labels being returned.
      Syntax : list_labels
      
      For example:
      
          hbase> list_labels 'secret.*'
          hbase> list_labels
      

      Attachments

        1. HBASE-14214.patch
          0.9 kB
          Anoop Sam John

        Activity

          People

            anoop.hbase Anoop Sam John
            apurtell Andrew Kyle Purtell
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: