[ 
https://issues.apache.org/jira/browse/SOLR-9045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christine Poerschke updated SOLR-9045:
--------------------------------------
    Description: 
objectives:
 * to allow users to change RecoveryStrategy settings such as maxRetries and 
startingRecoveryDelay
 * to support configuration of a custom recovery strategy e.g. SOLR-9044

patch summary:
 * support for optional <recoveryStrategy> solrconfig.xml element added (if 
element is present then its class attribute is optional)
 * RecoveryStrategy settings now have getters/setters
 * RecoveryStrategy.Builder added (and RecoveryStrategy constructor made 
non-public in favour of RecoveryStrategy.Builder.create)
 * protected RecoveryStrategy.getReplicateLeaderUrl method factored out 
(ConfigureRecoveryStrategyTest$CustomRecoveryStrategyBuilder test illustrates 
how SOLR-9044 might override the method)
 * ConfigureRecoveryStrategyTest.java using 
solrconfig-configurerecoverystrategy.xml or 
solrconfig-customrecoverystrategy.xml

illustrative solrconfig.xml snippets:
 * change a RecoveryStrategy setting
{code}
  <recoveryStrategy>
    <int name="maxRetries">250</int>
  </recoveryStrategy>
{code}
* configure a custom class
{code}
  <recoveryStrategy 
class="org.apache.solr.core.ConfigureRecoveryStrategyTest$CustomRecoveryStrategyBuilder">
    <str name="alternativeBaseUrlProp">recovery_base_url</str>
  </recoveryStrategy>
{code}

  was:
objectives:
 * to allow users to change RecoveryStrategy settings such as maxRetries and 
startingRecoveryDelay
 * to support configuration of a custom recovery strategy e.g. SOLR-9044

patch summary:
 * support for optional <recoveryStrategy> solrconfig.xml element added (if 
element is present then its class attribute is optional)
 * RecoveryStrategy settings now have getters/setters
 * RecoveryStrategy.Builder added (and RecoveryStrategy constructor made 
non-public in favour of RecoveryStrategy.Builder.create)
 * protected RecoveryStrategy.getReplicateLeaderUrl method factored out 
(ConfigureRecoveryStrategyTest$CustomRecoveryStrategyBuilder test illustrates 
how SOLR-9044 might override the method)
 * ConfigureRecoveryStrategyTest.java using 
solrconfig-configurerecoverystrategy.xml or 
solrconfig-customrecoverystrategy.xml

illustrative solrconfig.xml snippets:
 * change a RecoveryStrategy setting
{code}
  <recoveryStrategy>
    <int name="maxRetries">250</int>
  </recoveryStrategy>
 * configure a custom class
{code}
  <recoveryStrategy 
class="org.apache.solr.core.ConfigureRecoveryStrategyTest$CustomRecoveryStrategyBuilder">
    <str name="alternativeBaseUrlProp">recovery_base_url</str>
  </recoveryStrategy>
{code}


> make RecoveryStrategy settings configurable
> -------------------------------------------
>
>                 Key: SOLR-9045
>                 URL: https://issues.apache.org/jira/browse/SOLR-9045
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Christine Poerschke
>            Assignee: Christine Poerschke
>            Priority: Minor
>
> objectives:
>  * to allow users to change RecoveryStrategy settings such as maxRetries and 
> startingRecoveryDelay
>  * to support configuration of a custom recovery strategy e.g. SOLR-9044
> patch summary:
>  * support for optional <recoveryStrategy> solrconfig.xml element added (if 
> element is present then its class attribute is optional)
>  * RecoveryStrategy settings now have getters/setters
>  * RecoveryStrategy.Builder added (and RecoveryStrategy constructor made 
> non-public in favour of RecoveryStrategy.Builder.create)
>  * protected RecoveryStrategy.getReplicateLeaderUrl method factored out 
> (ConfigureRecoveryStrategyTest$CustomRecoveryStrategyBuilder test illustrates 
> how SOLR-9044 might override the method)
>  * ConfigureRecoveryStrategyTest.java using 
> solrconfig-configurerecoverystrategy.xml or 
> solrconfig-customrecoverystrategy.xml
> illustrative solrconfig.xml snippets:
>  * change a RecoveryStrategy setting
> {code}
>   <recoveryStrategy>
>     <int name="maxRetries">250</int>
>   </recoveryStrategy>
> {code}
> * configure a custom class
> {code}
>   <recoveryStrategy 
> class="org.apache.solr.core.ConfigureRecoveryStrategyTest$CustomRecoveryStrategyBuilder">
>     <str name="alternativeBaseUrlProp">recovery_base_url</str>
>   </recoveryStrategy>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to