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

single-node HBASE (or at least shell) went into inconsistent state

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • 0.95.2
    • None
    • None
    • None

    Description

      Thru the cycle of restarting HBase and shell, I was somehow able to get into this state (on trunk):

      hbase(main):020:0> describe 'test'
      DESCRIPTION                                                                                ENABLED                                          
       'test', {METHOD => 'table_att', CONFIG => {'Key' => 'Value2', 'Key2' => 'Value2'}}, {NAME true                                             
        => 'cf', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'NONE', REPLICATION_SCOPE => '0',                                                  
        COMPRESSION => 'NONE', VERSIONS => '3', TTL => '2147483647', MIN_VERSIONS => '0', KEEP_D                                                  
       ELETED_CELLS => 'false', BLOCKSIZE => '65536', ENCODE_ON_DISK => 'true', IN_MEMORY => 'fa                                                  
       lse', BLOCKCACHE => 'true'}                                                                                                                
      1 row(s) in 0.0420 seconds
      
      hbase(main):021:0> disable 'test'
      
      ERROR: Table test does not exist.'
      
      Here is some help for this command:
      Start disable of named table: e.g. "hbase> disable 't1'"
      
      
      hbase(main):022:0> create 'test', 'cf2'
      0 row(s) in 1.0900 seconds
      
      => Hbase::Table - test
      hbase(main):023:0> describe 'test'
      DESCRIPTION                                                                                ENABLED                                          
       'test', {METHOD => 'table_att', CONFIG => {'Key' => 'Value2', 'Key2' => 'Value2'}}, {NAME true                                             
        => 'cf', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'NONE', REPLICATION_SCOPE => '0',                                                  
        COMPRESSION => 'NONE', VERSIONS => '3', TTL => '2147483647', MIN_VERSIONS => '0', KEEP_D                                                  
       ELETED_CELLS => 'false', BLOCKSIZE => '65536', ENCODE_ON_DISK => 'true', IN_MEMORY => 'fa                                                  
       lse', BLOCKCACHE => 'true'}                                                                                                                
      1 row(s) in 0.0440 seconds
      
      hbase(main):024:0> disable 'test'
      0 row(s) in 7.0590 seconds
      
      hbase(main):026:0> alter 'test', METHOD => 'table_att', CONFIG => { 'Key' => 'Value3' }, MAX_FILESIZE => 1234567
      Updating all regions with the new schema...
      1/1 regions updated.
      Done.
      0 row(s) in 1.1210 seconds
      
      hbase(main):027:0> describe 'test'
      DESCRIPTION                                                                                ENABLED                                          
       'test', {METHOD => 'table_att', MAX_FILESIZE => '1234567', CONFIG => {'Key' => 'Value3',  false                                            
       'Key2' => 'Value2'}}, {NAME => 'cf', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'NONE'                                                  
       , REPLICATION_SCOPE => '0', COMPRESSION => 'NONE', VERSIONS => '3', TTL => '2147483647',                                                   
       MIN_VERSIONS => '0', KEEP_DELETED_CELLS => 'false', BLOCKSIZE => '65536', ENCODE_ON_DISK                                                   
       => 'true', IN_MEMORY => 'false', BLOCKCACHE => 'true'}                                                                                     
      1 row(s) in 0.0400 seconds
      
      hbase(main):029:0> enable 'test'
      0 row(s) in 7.0710 seconds
      
      hbase(main):030:0> put 'test', 'row1', 'cf:foo', 'bar'
      0 row(s) in 0.0240 seconds
      
      hbase(main):031:0> put 'test', 'row1', 'cf2:foo', 'bar'
      
      ERROR: org.apache.hadoop.hbase.client.RetriesExhaustedWithDetailsException: Failed 1 action: org.apache.hadoop.hbase.regionserver.NoSuchColumnFamilyException: Column family cf2 does not exist in region test,,1350063293064.7867533297035efe96611b5bcc54f332. in table 'test', {METHOD => 'table_att', MAX_FILESIZE => '1234567', CONFIG => {'Key' => 'Value3', 'Key2' => 'Value2'}}, {NAME => 'cf', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'NONE', REPLICATION_SCOPE => '0', COMPRESSION => 'NONE', VERSIONS => '3', TTL => '2147483647', MIN_VERSIONS => '0', KEEP_DELETED_CELLS => 'false', BLOCKSIZE => '65536', ENCODE_ON_DISK => 'true', IN_MEMORY => 'false', BLOCKCACHE => 'true'}
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            sershe Sergey Shelukhin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: