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

truncate_preserve fails when the truncate method doesn't exists on the master

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.5, 2.0.0
    • 1.4.0, 2.0.0
    • shell
    • None
    • Reviewed
    • The command truncate_preserve will be fine when the truncate method doesn't exist on the master

    Description

      Recently, I runs a rolling upgrade from HBase 0.98.x to HBase 1.2.5. During the master hasn't been upgraded yet, I truncate a table by the command truncate_preserve of 1.2.5, but failed.

      hbase(main):001:0> truncate_preserve 'cf_logs'
      Truncating 'cf_logs' table (it may take a while):
       - Disabling table...
       - Truncating table...
       - Dropping table...
       - Creating table with region boundaries...
      
      ERROR: no method 'createTable' for arguments (org.apache.hadoop.hbase.HTableDescriptor,org.jruby.java.proxies.ArrayJavaProxy) on Java::OrgApacheHadoopHbaseClient::HBaseAdmin
      

      After checking code and commit history, I found it's HBASE-12833 which causes this bug.so we should fix it.

      Attachments

        1. HBASE-18129-branch-1.patch
          2 kB
          Guangxu Cheng
        2. HBASE-18129-branch-1-v1.patch.patch
          3 kB
          Guangxu Cheng
        3. HBASE-18129-branch-1-v2.patch
          4 kB
          Guangxu Cheng
        4. HBASE-18129-branch-1-v3.patch
          4 kB
          Guangxu Cheng
        5. HBASE-18129-master.patch
          3 kB
          Guangxu Cheng
        6. HBASE-18129-master-v1.patch
          4 kB
          Guangxu Cheng

        Issue Links

          Activity

            People

              gxcheng Guangxu Cheng
              gxcheng Guangxu Cheng
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: