public boolean isThreadFailed() {
        return isShutdownComplete() && !isShutdownInitiated();
    }
@return true if there has been an unexpected error and the thread shut down
server-common/src/main/java/org/apache/kafka/server/util/ShutdownableThread.java