Apache Lucene open-source search software
SOLR-12416: When creating a time routed alias, the router.autoDeleteAge option wasn't considered.
David Smileyc22da7d7a9ab
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 61daacebc03..32830c7a051 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -376,6 +376,9 @@ Bug Fixesbut 'bin/solr create' tells users to use the default action 'set-property', which failsbecause the property is not editable. (Steve Rowe)+* SOLR-12416: When creating a time routed alias, the router.autoDeleteAge option wasn't considered.+ (Joachim Sauer via David Smiley)+Optimizations----------------------diff --git a/solr/core/src/java/org/apache/solr/cloud/api/collections/TimeRoutedAlias.java b/solr/core/src/java/org/apache/solr/cloud/api/collections/TimeRoutedAlias.javaindex 5cbc625b435..312e7369f5a 100644--- a/solr/core/src/java/org/apache/solr/cloud/api/collections/TimeRoutedAlias.java+++ b/solr/core/src/java/org/apache/solr/cloud/api/collections/TimeRoutedAlias.java@@ -80,8 +80,10 @@ public class TimeRoutedAlias {/*** Optional parameters for creating a routed alias excluding parameters for collection creation.*/+ //TODO lets find a way to remove this as it's harder to maintain than required listpublic static final List<String> OPTIONAL_ROUTER_PARAMS = Collections.unmodifiableList(Arrays.asList(ROUTER_MAX_FUTURE,+ ROUTER_AUTO_DELETE_AGE,TZ)); // kinda specialstatic Predicate<String> PARAM_IS_PROP =