private static void forceOfflineInZK(Admin admin, final RegionInfo region)
    throws ZooKeeperConnectionException, KeeperException, IOException, InterruptedException {
    admin.assign(region.getRegionName());
  }
In 0.90, this forces an HRI offline by setting the RegionTransitionData in ZK to have
HBCK_CODE_NAME as the server. This is a special case in the AssignmentManager that attempts an
assign call by the master. This doesn't seem to work properly in the updated version of 0.92+'s
hbck so we use assign to force the region into transition. This has the side-effect of
requiring a RegionInfo that considers regionId (timestamp) in comparators that is addressed by
HBASE-5563.
hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsckRepair.java