public void failure(final Throwable failure) {
        this.lock.lock();
        try {
            this.failure = failure;
            notifyHaveResult();
        } finally {
            this.lock.unlock();
        }
    }
Notify about the failure, occured during asynchronous operation
execution.
jraft-core/src/main/java/com/alipay/sofa/jraft/rpc/impl/FutureImpl.java