[
https://issues.apache.org/jira/browse/SOLR-18692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kevin Liang updated SOLR-18692:
-------------------------------
Status: Patch Available (was: Open)
> commitWithin does not respect autoCommit.maxTime
> ------------------------------------------------
>
> Key: SOLR-18692
> URL: https://issues.apache.org/jira/browse/SOLR-18692
> Project: Solr
> Issue Type: Bug
> Reporter: Kevin Liang
> Priority: Major
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Normally Solr will do a hard commit every X ms determined by
> autoCommit.maxTime in solrconfig.xml. A `commitWithin` param can be specified
> on a specific update request to intentionally tell Solr to make this update
> available in no more than the given time, however nothing in the code checks
> that the request's `commitWithin` is necessarily less than the configured
> `autoCommit.maxTime`. Because of this, it is possible to end up with hard
> commits taking longer than the `autoCommit.maxTime`, which feels like an
> unintended design bug. I imagine that the intuitive behavior would be that
> any commitWithin > autoCommit.maxTime would just be subsumed by the
> configured maxTime. The unintended consequences can be that local transaction
> log will continue to grow and take up space, and when the commit does finally
> happen it may take longer than desired.
> *How to replicate:*
> Configure Solr with autoCommit.maxTime (let's say we use the default 15s) on
> a TLOG leader replica. If we send only requests with commitWithin of 60s,
> transaction log will continue growing in size until it is flushed at 60s
> (instead of the expected 15s).
> *Fix:*
> When scheduling commit interval, check that provided commitWithin < auto
> commit max time
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]