solr icon indicating copy to clipboard operation
solr copied to clipboard

[SOLR-17187] Add possibility to supply a custom commitPollInterval for TLOG/PULL replicas

Open tboeghk opened this issue 1 year ago • 6 comments

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

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.

<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 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 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

tboeghk avatar Feb 28 '24 09:02 tboeghk

Looks like some feedback @tboeghk that could be addressed and then maybe this would be ready for commit!

epugh avatar Mar 26 '24 18:03 epugh

Does this change need a unit test?

epugh avatar Mar 26 '24 18:03 epugh

@cpoerschke is absolutely right, I added it "the hacky way". I'll extract the config setting the proper way 👍

With that, a unit test is easy to add @epugh 👍

I'll update the docs also as soon as I'm back at my desk (after Easter)

tboeghk avatar Mar 26 '24 20:03 tboeghk

This PR had no visible activity in the past 60 days, labeling it as stale. Any new activity will remove the stale label. To attract more reviewers, please tag someone or notify the [email protected] mailing list. Thank you for your contribution!

github-actions[bot] avatar May 29 '24 00:05 github-actions[bot]

@tboeghk I'm still interested in this one getting in ;-). And it's post 🐰 season! ;-)

epugh avatar May 29 '24 13:05 epugh

This PR has had no activity for 60 days and is now labeled as stale. Any new activity or converting it to draft will remove the stale label. To attract more reviewers, please tag people who might be familiar with the code area and/or notify the [email protected] mailing list. Thank you for your contribution!

github-actions[bot] avatar Aug 04 '24 00:08 github-actions[bot]