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

move_tables_rsgroup will throw an exception when the table is disabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha-1
    • 1.4.0, 2.0.0
    • rsgroup
    • None
    • Reviewed

    Description

      When the table is disabled, move_tables_rsgroup will throw an exception, but the table has been moved to the new group successfully.

      hbase(main):009:0> move_tables_rsgroup 'default',['t1']
      ERROR: java.io.IOException
              at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:465)
              at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:134)
              at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:325)
              at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:305)
      Caused by: java.lang.NullPointerException
              at org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos$MoveRegionStateData$Builder.setSourceServer(MasterProcedureProtos.java:26022)
              at org.apache.hadoop.hbase.master.assignment.MoveRegionProcedure.serializeStateData(MoveRegionProcedure.java:133)
              at org.apache.hadoop.hbase.procedure2.ProcedureUtil.convertToProtoProcedure(ProcedureUtil.java:198)
              at org.apache.hadoop.hbase.procedure2.store.wal.ProcedureWALFormat.writeEntry(ProcedureWALFormat.java:211)
              at org.apache.hadoop.hbase.procedure2.store.wal.ProcedureWALFormat.writeInsert(ProcedureWALFormat.java:222)
              at org.apache.hadoop.hbase.procedure2.store.wal.WALProcedureStore.insert(WALProcedureStore.java:470)
              at org.apache.hadoop.hbase.procedure2.ProcedureExecutor.submitProcedure(ProcedureExecutor.java:866)
              at org.apache.hadoop.hbase.procedure2.ProcedureExecutor.submitProcedure(ProcedureExecutor.java:835)
              at org.apache.hadoop.hbase.master.procedure.ProcedureSyncWait.submitAndWaitProcedure(ProcedureSyncWait.java:120)
              at org.apache.hadoop.hbase.master.assignment.AssignmentManager.move(AssignmentManager.java:557)
              at org.apache.hadoop.hbase.rsgroup.RSGroupAdminServer.moveTables(RSGroupAdminServer.java:413)
              at org.apache.hadoop.hbase.rsgroup.RSGroupAdminEndpoint$RSGroupAdminServiceImpl.moveTables(RSGroupAdminEndpoint.java:190)
              at org.apache.hadoop.hbase.protobuf.generated.RSGroupAdminProtos$RSGroupAdminService.callMethod(RSGroupAdminProtos.java:12786)
              at org.apache.hadoop.hbase.master.MasterRpcServices.execMasterService(MasterRpcServices.java:786)
              at org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java)
              at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:406)
              ... 3 more
      
      Reassign tables from one RegionServer group to another.
      
      Example:
      
        hbase> move_tables_rsgroup 'dest',['table1','table2']
      
      
      Took 0.0297 seconds
      

      Attachments

        1. HBASE-19088.master.001.patch
          3 kB
          Guangxu Cheng
        2. HBASE-19088.master.002.patch
          3 kB
          Guangxu Cheng
        3. HBASE-19088.branch-1.001.patch
          4 kB
          Guangxu Cheng
        4. HBASE-19088.branch-1.001.patch
          4 kB
          Guangxu Cheng
        5. HBASE-19088.branch-1.002.patch
          4 kB
          Guangxu Cheng
        6. HBASE-19088.master.003.patch
          3 kB
          Guangxu Cheng

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: