lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (JIRA)" <>
Subject [jira] [Commented] (SOLR-11900) API command to delete oldest collections in a time routed alias
Date Sat, 27 Jan 2018 04:13:00 GMT


David Smiley commented on SOLR-11900:

Perhaps in fact we don't actually need a new API  but instead have a delete query that looks
like this {{timeRoutedField:[* TO NOW/MONTH]}} auto-purge the old collections.  We've already
got the URP in place to intercept and act. Arguably if new data creates collections, telling
it to delete old stuff should delete the old collections.

Regardless of how this feature looks, there will be a separate issue to auto-delete.  The
issue here is about being explicit about it.

> API command to delete oldest collections in a time routed alias
> ---------------------------------------------------------------
>                 Key: SOLR-11900
>                 URL:
>             Project: Solr
>          Issue Type: Sub-task
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud
>            Reporter: David Smiley
>            Assignee: David Smiley
>            Priority: Major
>             Fix For: 7.3
> 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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message