You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2021/04/29 03:01:46 UTC
[GitHub] [druid] maytasm commented on a change in pull request #11164: Add feature to automatically remove rules based on retention period
maytasm commented on a change in pull request #11164:
URL: https://github.com/apache/druid/pull/11164#discussion_r622701627
##########
File path: server/src/main/java/org/apache/druid/metadata/MetadataRuleManager.java
##########
@@ -42,4 +42,12 @@
List<Rule> getRulesWithDefault(String dataSource);
boolean overrideRule(String dataSource, List<Rule> rulesConfig, AuditInfo auditInfo);
+
+ /**
+ * Remove rules for non-existence datasource (datasource with no segment) created older than the given timestamp.
+ *
+ * @param timestamp timestamp in milliseconds
+ * @return number of rules removed
+ */
+ int removeRulesOlderThan(long timestamp);
Review comment:
Done
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org