Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-11299 Time partitioned collections (umbrella issue)
  3. SOLR-11900

API command to delete oldest collections in a time routed alias

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • SolrCloud
    • None

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            dsmiley David Smiley

            Dates

              Created:
              Updated:

              Slack

                Issue deployment