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

Table name isn't checked in isTableEnabled/isTableDisabled

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.92.0
    • None
    • None
    • Reviewed
    • noob

    Description

      Currently when we enable or disable a table in the shell, since we don't verify the table name with HTableDescriptor.isLegalTableName in isTableEnabled and isTableDisabled, we get the following exception:

      ERROR: java.lang.IllegalArgumentException: Invalid path string "/jdcryans180/table/TestTable
      " caused by invalid charater @28
      

      This is coming out of ZooKeeper. Instead we should check the table name ourselves in order to give a better feedback.

      Attachments

        1. hbase-3313.txt
          0.8 kB
          Ted Yu

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            yuzhihong@gmail.com Ted Yu
            jdcryans Jean-Daniel Cryans
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment