Jackie-Jiang commented on code in PR #11943: URL: https://github.com/apache/pinot/pull/11943#discussion_r1397830314
########## pinot-spi/src/main/java/org/apache/pinot/spi/stream/StreamMetadataProvider.java: ########## @@ -43,6 +45,18 @@ public interface StreamMetadataProvider extends Closeable { */ int fetchPartitionCount(long timeoutMillis); + /** + * Fetches the partition ids for a topic given the stream configs. + */ + default Set<Integer> fetchPartitionIds(long timeoutMillis) { Review Comment: By default this method is unsupported and will fall back to `computePartitionGroupMetadata()` at the caller side. We cannot directly use `computePartitionGroupMetadata()` as the default here because the arguments are different, and we don't want to force the caller to read the consumption status for all existing partitions -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org