@Override
    public int hashCode() {
        return Objects.hash(connectorName, onlyFailed, includeTasks);
    }
Determine whether the task instance with the given status is to be restarted.

@param status the task status; may not be null
@return true if the task is to be restarted, or false otherwise
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/RestartRequest.java