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

Old .META. .tableinfo file kills HMaster

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.95.2
    • 0.98.0, 0.96.0
    • master, migration
    • None
    • Reviewed

    Description

      In pre-0.96, .META. has .tableinfo files which refer to .META. On startup, master tries to read it and aborts since the table name has changed. The .META. .tableinfo files are not being created in 0.94.x (fixed for 96 in HBASE-6971; but this can be reproduced when migrating from 0.92 -> 0.94 -> 0.96. Our old users would be affected by this.

      java.lang.IllegalArgumentException: .META. no longer exists. The table has been renamed to hbase:meta
      	at org.apache.hadoop.hbase.TableName.valueOf(TableName.java:291)
      	at org.apache.hadoop.hbase.TableName.valueOf(TableName.java:283)
      	at org.apache.hadoop.hbase.HTableDescriptor.readFields(HTableDescriptor.java:960)
      	at org.apache.hadoop.hbase.util.Writables.getWritable(Writables.java:131)
      	at org.apache.hadoop.hbase.util.Writables.getWritable(Writables.java:101)
      	at org.apache.hadoop.hbase.HTableDescriptor.parseFrom(HTableDescriptor.java:1407)
      	at org.apache.hadoop.hbase.util.FSTableDescriptors.readTableDescriptor(FSTableDescriptors.java:521)
      	at org.apache.hadoop.hbase.util.FSTableDescriptors.createTableDescriptorForTableDirectory(FSTableDescriptors.java:707)
      	at org.apache.hadoop.hbase.util.FSTableDescriptors.createTableDescriptor(FSTableDescriptors.java:683)
      	at org.apache.hadoop.hbase.util.FSTableDescriptors.createTableDescriptor(FSTableDescriptors.java:670)
      	at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:485)
      	at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:145)
      	at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:129)
      	at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:761)
      

      Attachments

        1. HBase-9497.patch
          2 kB
          Himanshu Vashishtha

        Activity

          People

            v.himanshu Himanshu Vashishtha
            v.himanshu Himanshu Vashishtha
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: