[ 
https://issues.apache.org/jira/browse/SOLR-16355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17584293#comment-17584293
 ] 

Andy Lester commented on SOLR-16355:
------------------------------------

I was the one who discovered this. I was doing some development on my 8.11 
comparing performance between two cores with different field setups. I had made 
changes to the two cores as part of my test prep, and then wanted to optimize 
both cores before I started my testing so they'd be in the same state.

 

I understand that optimizations are Rarely If Ever Needed, and that 
philosophically we want to steer folks away from the "optimize all the things!" 
mindset. Still, there is a legit need for it and users shouldn't have to make 
gratuitous updates to get them to happen.

> When there are no changes to commit, an optimize is skipped
> -----------------------------------------------------------
>
>                 Key: SOLR-16355
>                 URL: https://issues.apache.org/jira/browse/SOLR-16355
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 9.0
>            Reporter: Shawn Heisey
>            Priority: Major
>
> I had been trying to run an optimize on my index.  Every time I tried it, the 
> request completed instantly and did not do the optimize.
> If I request an optimize while a reindex is underway, so there are 
> uncommitted changes, then it does actually do the optimize.  The index is 
> very small so it only takes a few seconds.
> It looks to me like whatever logic the update handler has which causes a 
> commit to be a no-op when there are no changes to commit is also causing the 
> optimize to be a no-op.
> This is the request I am making:
> {code:java}
> curl -v 
> "http://localhost:8983/solr/dovecot/update?commit=true&optimize=true"{code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to