SyncFuture reset(long txid, boolean forceSync) {
    if (t != null && t != Thread.currentThread()) {
      throw new IllegalStateException();
    }
    t = Thread.currentThread();
    if (!isDone()) {
      throw new IllegalStateException("" + txid + " " + Thread.currentThread());
    }
    this.doneTxid = NOT_DONE;
    this.forceSync = forceSync;
    this.txid = txid;
    this.throwable = null;
    return this;
  }
Call this method to clear old usage and get it ready for new deploy.
@param txid the new transaction id
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/SyncFuture.java