public void unlock() {
        if (!this.lock.isHeldByCurrentThread()) {
            LOG.warn("Fail to unlock with {}, the lock is not held by current thread {}.", this.data,
                Thread.currentThread());
            return;
        }
        this.lock.unlock();
    }
Error callback, it will be called in lock.

@param id        the thread id
@param data      the data
@param errorCode the error code
jraft-core/src/main/java/com/alipay/sofa/jraft/util/ThreadId.java