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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.90.0
    • Component/s: None
    • Labels:
      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

            • Assignee:
              stack stack
              Reporter:
              stack stack
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: