tboeghk opened a new pull request, #2316: URL: https://github.com/apache/solr/pull/2316
https://issues.apache.org/jira/browse/SOLR-17187 # Description In TLOG/PULL replica setups with longer commit intervals it would be great to configure the interval to check for new commits manually to tune to your setup. Currently on the PULL replica the interval to check for new commits is [computed using the commit / soft commit settings](https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/cloud/ReplicateFromLeader.java#L83-L87) # Solution You can now supply a custom `commitPollInterval` in your `updateHandler` definition. If supplied, this takes precendence over the one calculated from hard/soft commit settings. ```xml <updateHandler class="solr.DirectUpdateHandler2"> <!-- For TLOG replicas, updateLog must be enabled --> <updateLog> <str name="dir">${solr.ulog.dir:}</str> </updateLog> <!-- custom poll interval fix --> <commitPollInterval>00:00:10</commitPollInterval> </updateHandler> ``` # Tests None :-/ # Checklist - [x] I have reviewed the guidelines for [How to Contribute](https://github.com/apache/solr/blob/main/CONTRIBUTING.md) and my code conforms to the standards described there to the best of my ability. - [x] I have created a Jira issue and added the issue ID to my pull request title. - [ ] I have given Solr maintainers [access](https://help.github.com/en/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork) to contribute to my PR branch. (optional but recommended) - [x] I have developed this patch against the `main` branch. - [x] I have run `./gradlew check`. - [ ] I have added tests for my changes. - [ ] I have added documentation for the [Reference Guide](https://github.com/apache/solr/tree/main/solr/solr-ref-guide) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org