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

Can't truncate/disable table that has rows in .META. that have empty info:regioninfo column

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.90.0
    • None
    • None

    Description

      I somehow manufactured empty info:regioninfo cells in .META. – still trying to figure how – but trying to drop the table I get NPE

      ERROR: java.lang.NullPointerException: null
      Backtrace: org/apache/hadoop/hbase/util/Writables.java:75:in `getWritable'
                 org/apache/hadoop/hbase/util/Writables.java:119:in `getHRegionInfo'
                 org/apache/hadoop/hbase/client/HConnectionManager.java:505:in `processRow'
                 org/apache/hadoop/hbase/client/MetaScanner.java:190:in `metaScan'
                 org/apache/hadoop/hbase/client/MetaScanner.java:95:in `metaScan'
                 org/apache/hadoop/hbase/client/MetaScanner.java:73:in `metaScan'
                 org/apache/hadoop/hbase/client/HConnectionManager.java:530:in `getHTableDescriptor'
                 org/apache/hadoop/hbase/client/HTable.java:320:in `getTableDescriptor'
                 /home/stack/hbase/bin/../bin/../src/main/ruby/hbase/admin.rb:205:in `truncate'
                 /home/stack/hbase/bin/../bin/../src/main/ruby/shell/commands/truncate.rb:33:in `command'
                 /home/stack/hbase/bin/../bin/../src/main/ruby/shell/commands.rb:64:in `format_simple_command'
                 /home/stack/hbase/bin/../bin/../src/main/ruby/shell/commands/truncate.rb:31:in `command'
                 /home/stack/hbase/bin/../bin/../src/main/ruby/shell/commands.rb:31:in `command_safe'
                 /home/stack/hbase/bin/../bin/../src/main/ruby/shell/commands.rb:70:in `translate_hbase_exceptions'
                 /home/stack/hbase/bin/../bin/../src/main/ruby/shell/commands.rb:31:in `command_safe'
                 /home/stack/hbase/bin/../bin/../src/main/ruby/shell.rb:106:in `command'
                 (eval):2:in `truncate'
                 (hbase):4:in `irb_binding'
      

      Attachments

        Activity

          People

            stack Michael Stack
            stack Michael Stack
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: