protected void releaseLatch(MasterProcedureEnv env) {
    ProcedurePrepareLatch.releaseLatch(latch, this);
  }
Called before we finish the procedure. The implementation can do some logging work, and also
call the coprocessor hook if any.
<p>
Notice that, since we have already done the actual work, throwing {@code IOException} here will
not fail this procedure, we will just ignore it and finish the procedure as suceeded. If
{@code ReplicationException} is thrown we will retry since this usually means we fails to
update the peer storage.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/replication/ModifyPeerProcedure.java