static <R> QueryResult<R> notUpToBound(
        final Position currentPosition,
        final PositionBound positionBound,
        final Integer partition) {

        if (partition == null) {
            return new FailedQueryResult<>(
                FailureReason.NOT_UP_TO_BOUND,
                "The store is not initialized yet, so it is not yet up to the bound "
                    + positionBound
            );
        } else {
            return new FailedQueryResult<>(
                FailureReason.NOT_UP_TO_BOUND,
                "For store partition " + partition + ", the current position "
                    + currentPosition + " is not yet up to the bound "
                    + positionBound
            );
        }
    }
Static factory method to create a failed query result object to indicate that the store has
not yet caught up to the requested position bound.
<p>
Used by StateStores to respond to a {@link StateStore#query(Query, PositionBound, QueryConfig)}.
streams/src/main/java/org/apache/kafka/streams/query/QueryResult.java