HBase
  1. HBase
  2. HBASE-5581

Creating a table with invalid syntax does not give an error message when it fails

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.94.0, 0.95.0
    • Component/s: shell
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Creating a table with invalid syntax does not give an error message when it fails. In this case, it doesn't actually create the CF requested, but doesn't give any indication to the user that it failed.

      create 'test',

      {NAME => 'test', VERSIONS => 1, BLOCKCACHE => true, NUMREGIONS => 20, SPLITALGO => "HexStringSplit", COMPRESSION => 'LZO', BLOOMFILTER => 'ROW'}

      0 row(s) in 3.0930 seconds

      hbase(main):002:0> describe 'test'
      DESCRIPTION ENABLED

      {NAME => 'test', FAMILIES => []}

      true
      1 row(s) in 0.1430 seconds


      Putting

      {NUMREGIONS => 20, SPLITALGO => "HexStringSplit"} into a separate stanza works fine, so the feature is fine.

      create 'test', {NAME => 'test', VERSIONS => 1, BLOCKCACHE => true, COMPRESSION => 'LZO', BLOOMFILTER => 'ROW'}, {NUMREGIONS => 20, SPLITALGO => "HexStringSplit"}

      0 row(s) in 2.7860 seconds

      hbase(main):002:0> describe 'test'
      DESCRIPTION ENABLED
      {NAME => 'test', FAMILIES => [

      {NAME => 'test', DATA_BLOCK_ENCODING => 'NONE', true BLOOMFILTER => 'ROW', REPLICATION_SCOPE => '0', COMPRESSION => 'LZO', VERSIONS => '1', TTL => '2147483647', BLOCKSIZE => '65536', BLOOMFILTER_ERRORRATE => ' 0.01', ENCODE_ON_DISK => 'true', IN_MEMORY => 'false', BLOCKCACHE => 'true'}

      ]}


      We should throw an error if we can't create the CF so it's clear to the user.

      1. ASF.LICENSE.NOT.GRANTED--D2343.1.patch
        0.9 kB
        Phabricator
      2. 5581trunk.patch
        0.8 kB
        stack

        Activity

        Lars Hofhansl made changes -
        Fix Version/s 0.94.0 [ 12316419 ]
        stack made changes -
        Fix Version/s 0.95.0 [ 12324094 ]
        Fix Version/s 0.94.0 [ 12316419 ]
        Fix Version/s 0.96.0 [ 12320040 ]
        Lars Hofhansl made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        stack made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Resolution Fixed [ 1 ]
        stack made changes -
        Attachment 5581trunk.patch [ 12518718 ]
        Lars Hofhansl made changes -
        Fix Version/s 0.94.0 [ 12316419 ]
        Fix Version/s 0.96.0 [ 12320040 ]
        Phabricator made changes -
        Field Original Value New Value
        Attachment D2343.1.patch [ 12518554 ]
        Binu John created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Binu John
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development