justinrsweeney opened a new pull request, #1437:
URL: https://github.com/apache/solr/pull/1437

   https://issues.apache.org/jira/browse/SOLR-16487
   
   # Description
   
   The polling for replication is fairly simply, but can lead to polling too 
often. As an example if you had the following config for commits:
   ```
   <autoCommit>
       <maxTime>15000</maxTime>
       <openSearcher>false</openSearcher>
   </autoCommit>
   
   <autoSoftCommit>
       <maxTime>60000</maxTime>
   </autoSoftCommit>
   ```
   The current logic would setup polling to be half of the autoCommit time, so 
poll every 7.5 seconds. However since a new searcher isn't opened, there will 
only be changes reflected every 60 seconds on the leader. We can make this 
logic a bit smarter knowing that the replication handler won't reflect changes 
until a new searcher is opened.
   
   # Solution
   
   Modified the code setting the polling interval for replication to only use 
the autoCommit time if openSearcher is true, otherwise it will use the soft 
commit time.
   
   # Tests
   
   Please describe the tests you've developed or run to confirm this patch 
implements the feature or solves the problem.
   
   # Checklist
   
   Please review the following and check all that apply:
   
   - [ ] I have reviewed the guidelines for [How to 
Contribute](https://wiki.apache.org/solr/HowToContribute) and my code conforms 
to the standards described there to the best of my ability.
   - [ ] 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)
   - [ ] I have developed this patch against the `main` branch.
   - [ ] 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to