findingrish commented on code in PR #16676:
URL: https://github.com/apache/druid/pull/16676#discussion_r1668453368
##########
server/src/main/java/org/apache/druid/client/coordinator/CoordinatorClient.java:
##########
@@ -69,4 +69,9 @@ public interface CoordinatorClient
* Returns a new instance backed by a ServiceClient which follows the
provided retryPolicy
*/
CoordinatorClient withRetryPolicy(ServiceRetryPolicy retryPolicy);
+
+ /**
+ * Retrieves list of used datasources.
+ */
+ ListenableFuture<Set<String>> fetchUsedDataSources();
Review Comment:
I have updated the method name to `fetchDatasourcesWithUsedSegments` to make
it more understandable.
I don't think we need to document about what `used segments` means, since it
is widely referred in the code and docs. For example, here
https://druid.apache.org/docs/latest/api-reference/data-management-api/#mark-a-single-segment-as-used.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]