hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java
/**
   * A 'raw' version of unassign that does bulk and skirts Master state checks (unassigns can be
   * made during Master startup). For use by Hbck2.
   */
A 'raw' version of unassign that does bulk and skirts Master state checks (unassigns can be
made during Master startup). For use by Hbck2.
A ' raw ' version of unassign that does bulk and skirts Master state checks ( unassigns can be made during Master startup ) . For use by Hbck2 .
@Override
  public MasterProtos.UnassignsResponse unassigns(RpcController controller,
      MasterProtos.UnassignsRequest request)
      throws ServiceException {
    if (this.master.getMasterProcedureExecutor() == null) {
      throw new ServiceException("Master's ProcedureExecutor not initialized; retry later");
    }
    MasterProtos.UnassignsResponse.Builder responseBuilder =
        MasterProtos.UnassignsResponse.newBuilder();
    try {
      boolean override = request.getOverride();
      LOG.info("{} unassigns, override={}", master.getClientIdAuditPrefix(), override);
      for (HBaseProtos.RegionSpecifier rs: request.getRegionList()) {
        RegionInfo ri = getRegionInfo(rs);
        if (ri == null) {
          LOG.info("Unknown={}", rs);
          responseBuilder.addPid(Procedure.NO_PROC_ID);
          continue;
        }
        responseBuilder.addPid(this.master.getMasterProcedureExecutor().submitProcedure(this.master
            .getAssignmentManager().createOneUnassignProcedure(ri, override)));
      }
      return responseBuilder.build();
    } catch (IOException ioe) {
      throw new ServiceException(ioe);
    }
  }
@ Override public MasterProtos . UnassignsResponse unassigns ( RpcController controller , MasterProtos . UnassignsRequest request ) throws ServiceException { if ( this . master . getMasterProcedureExecutor ( ) == null ) { throw new ServiceException ( "Master's ProcedureExecutor not initialized; retry later" ) ; } MasterProtos . UnassignsResponse . Builder responseBuilder = MasterProtos . UnassignsResponse . newBuilder ( ) ; try { boolean override = request . getOverride ( ) ; LOG . info ( "{} unassigns, override={}" , master . getClientIdAuditPrefix ( ) , override ) ; for ( HBaseProtos . RegionSpecifier rs : request . getRegionList ( ) ) { RegionInfo ri = getRegionInfo ( rs ) ; if ( ri == null ) { LOG . info ( "Unknown={}" , rs ) ; responseBuilder . addPid ( Procedure . NO_PROC_ID ) ; continue ; } responseBuilder . addPid ( this . master . getMasterProcedureExecutor ( ) . submitProcedure ( this . master . getAssignmentManager ( ) . createOneUnassignProcedure ( ri , override ) ) ) ; } return responseBuilder . build ( ) ; } catch ( IOException ioe ) { throw new ServiceException ( ioe ) ; } }
A 'raw' version of unassign that does bulk and skirts Master state checks (unassigns can be
 made during Master startup).
A ' raw ' version of unassign that does bulk and skirts Master state checks ( unassigns can be made during Master startup ) .