private boolean isRetriable(final Exception exception) {
        return exception instanceof RetriableException &&
                (!(exception instanceof TimeoutException) || exception.getCause() == null
                        || !(exception.getCause() instanceof UnknownTopicOrPartitionException));
    }
The `TimeoutException` with root cause `UnknownTopicOrPartitionException` is considered as non-retriable
(despite `TimeoutException` being a subclass of `RetriableException`, this particular case is explicitly excluded).
streams/src/main/java/org/apache/kafka/streams/processor/internals/RecordCollectorImpl.java