HBase
  1. HBase
  2. HBASE-1633

Can't delete in TRUNK shell; makes it hard doing admin repairs

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.20.0
    • Component/s: None
    • Labels:
      None

      Description

      Because shell uses old API, it runs into the "Can't add deletes to a BatchUpdate" issue. Add new API to do shell delete and deleteAll. Just a few lines.

      1. deleteall.patch
        1 kB
        stack
      2. delete.rb
        0.4 kB
        stack
      3. 1633.patch
        3 kB
        stack

        Activity

        Hide
        stack added a comment -

        Here is deletall implementation. delete to follow.

        Show
        stack added a comment - Here is deletall implementation. delete to follow.
        Hide
        stack added a comment -

        Found this issue playing w/ BD stuff. Attached file is running through .META. data he gave me trying to delete rows that have historian records only on them. Its not working. There were two entries. I got first, but seemingly, I can't delete this second entry no matter what. Figure whats up.

        Show
        stack added a comment - Found this issue playing w/ BD stuff. Attached file is running through .META. data he gave me trying to delete rows that have historian records only on them. Its not working. There were two entries. I got first, but seemingly, I can't delete this second entry no matter what. Figure whats up.
        Hide
        stack added a comment -

        Part of problem was an hfile that had entry from wrong family. Filing separate issue for this.

        Show
        stack added a comment - Part of problem was an hfile that had entry from wrong family. Filing separate issue for this.
        Hide
        stack added a comment -

        Fixes for delete and deleteAll in bin/HBase.rb. Use new API to do deletes since can't do it using old API since the mapping of old to new does not accomodate a BatchUpdate with deletes.

        Show
        stack added a comment - Fixes for delete and deleteAll in bin/HBase.rb. Use new API to do deletes since can't do it using old API since the mapping of old to new does not accomodate a BatchUpdate with deletes.
        Hide
        stack added a comment -

        Patch also prints out name of offending row if we trip over HBASE-1634

        Show
        stack added a comment - Patch also prints out name of offending row if we trip over HBASE-1634
        Hide
        stack added a comment -

        Committed. Small change.

        Show
        stack added a comment - Committed. Small change.
        Hide
        stack added a comment -

        Here is what it does in shell:

        hbase(main):001:0> list
        09/07/09 20:28:55 ERROR client.HConnectionManager$TableServers: Result=keyvalues={lookup_records,\x1C\x15\x04\x15\xC6\x01\x00\x1C\x15\x08\x3C\x15\xC6\x01\x18\x09593357539\x00\x00\x00,1247031997285/historian:compaction/1247032036319/Put/vlen=36}
        NativeException: java.lang.NullPointerException: null
        	from org/apache/hadoop/hbase/util/Writables.java:74:in `getWritable'
        	from org/apache/hadoop/hbase/util/Writables.java:118:in `getHRegionInfo'
        	from org/apache/hadoop/hbase/client/HConnectionManager.java:354:in `processRow'
        	from org/apache/hadoop/hbase/client/MetaScanner.java:63:in `metaScan'
        	from org/apache/hadoop/hbase/client/MetaScanner.java:28:in `metaScan'
        	from org/apache/hadoop/hbase/client/HConnectionManager.java:367:in `listTables'
        	from org/apache/hadoop/hbase/client/HBaseAdmin.java:127:in `listTables'
        
        ....
        

        The list of the problematic Result up top is new.

        Show
        stack added a comment - Here is what it does in shell: hbase(main):001:0> list 09/07/09 20:28:55 ERROR client.HConnectionManager$TableServers: Result=keyvalues={lookup_records,\x1C\x15\x04\x15\xC6\x01\x00\x1C\x15\x08\x3C\x15\xC6\x01\x18\x09593357539\x00\x00\x00,1247031997285/historian:compaction/1247032036319/Put/vlen=36} NativeException: java.lang.NullPointerException: null from org/apache/hadoop/hbase/util/Writables.java:74:in `getWritable' from org/apache/hadoop/hbase/util/Writables.java:118:in `getHRegionInfo' from org/apache/hadoop/hbase/client/HConnectionManager.java:354:in `processRow' from org/apache/hadoop/hbase/client/MetaScanner.java:63:in `metaScan' from org/apache/hadoop/hbase/client/MetaScanner.java:28:in `metaScan' from org/apache/hadoop/hbase/client/HConnectionManager.java:367:in `listTables' from org/apache/hadoop/hbase/client/HBaseAdmin.java:127:in `listTables' .... The list of the problematic Result up top is new.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development