[
https://issues.apache.org/jira/browse/SOLR-11900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Smiley reassigned SOLR-11900:
-----------------------------------
Assignee: (was: David Smiley)
> API command to delete oldest collections in a time routed alias
> ---------------------------------------------------------------
>
> Key: SOLR-11900
> URL: https://issues.apache.org/jira/browse/SOLR-11900
> Project: Solr
> Issue Type: Sub-task
> Components: SolrCloud
> Reporter: David Smiley
> Priority: Major
> Fix For: 8.1, master (9.0)
>
> Attachments: SOLR-11900.patch
>
>
> For Time Routed Aliases, we'll need an API command to delete the oldest
> collection(s). Perhaps the command action name is
> DELETE_COLLECTION_OF_ROUTED_ALIAS (yes that's long). And input is of course
> the routed alias name, plus a mandatory "before" which is a standard time
> input that Solr accepts that will likely include date math. Thus if you used
> before="NOW/DAY-90DAYS" then your guaranteed to have the last 90 days worth
> of data. If a collection overlaps past what "before" is computed to be then
> it needs to stay. The pattern might match any number of collections, perhaps
> none. But in all cases, the most recent collection must be retained -- the
> time routed aliases must at all times refer to at least one collection.
> The underlying steps will be to first update the alias, and then delete the
> collection(s). It ought to return the collections that get deleted.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]