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

[rsgroup] Do not attempt to move tables that do not exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • rsgroup
    • None

    Description

      In rsgroup, allow to move tables that do not exist. This can cause dirty data.

      base(main):004:0* move_rsgroup_tables 'rs1',['ttt']
      
      hbase(main):005:0> get_rsgroup 'rs1'
      GROUP INFORMATION 
      Servers: 
      192.168.12.65:16020  
      Tables: 
      ttt 
      
      

       
      I think it should be like this. As follows:

      hbase(main):001:0> move_rsgroup_tables 'rs1',['ttt']
      
      ERROR: org.apache.hadoop.hbase.constraint.ConstraintException: Source group is null for table ttt ,table must exist.
      	at org.apache.hadoop.hbase.rsgroup.RSGroupAdminServer.moveTables(RSGroupAdminServer.java:265)
      	at org.apache.hadoop.hbase.rsgroup.RSGroupAdminEndpoint.moveTables(RSGroupAdminEndpoint.java:174)
      	at org.apache.hadoop.hbase.protobuf.generated.RSGroupAdminProtos$RSGroupAdminService.callMethod(RSGroupAdminProtos.java:11141)
      	at org.apache.hadoop.hbase.master.MasterRpcServices.execMasterService(MasterRpcServices.java:675)
      	at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:52454)
      	at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2135)
      	at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:107)
      	at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:133)
      	at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:108)
      	at java.lang.Thread.run(Thread.java:745)
      
      Here is some help for this command:
      Reassign tables from one group to another.
      
        hbase> move_rsgroup_tables 'dest',['table1','table2']
      
      

      Attachments

        1. HBASE-21693.master.004.patch
          4 kB
          xuqinya
        2. HBASE-21693.master.003.patch
          4 kB
          xuqinya
        3. HBASE-21693.master.0002.patch
          2 kB
          xuqinya
        4. HBASE-21693.master.0001.patch
          2 kB
          xuqinya

        Activity

          People

            xu qinya xuqinya
            xu qinya xuqinya
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: