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

Old .META. .tableinfo file kills HMaster

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.95.2
    • Fix Version/s: 0.98.0, 0.96.0
    • Component/s: master, migration
    • Labels:
      None
    • Hadoop Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: