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

Error message for non-existent namespace is inaccurate

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0-beta-1, 2.0.0
    • None
    • None
    • Reviewed

    Description

      On a secure cluster, when I issued this command where ns1 didn't exist:

      hbase(main):002:0> create 'ns1:t1', 'f1', SPLITS => ['10', '20', '30', '40']
      
      ERROR: Unknown namespace ns1:t1!
      
      Creates a table. Pass a table name, and a set of column family
      specifications (at least one), and, optionally, table configuration
      

      Here is related code:

                raise "Unknown namespace #{args.first}!"
      

      Simply quoting the argument is not accurate - namespace should be extracted from the argument

      Attachments

        1. HBASE-19755-master.patch
          1 kB
          Sergey Soldatov

        Activity

          People

            sergey.soldatov Sergey Soldatov
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: