Bigger question, why are you optimizing? Since 3.6 or so, it generally hasn't been requires, even, is a bad thing.
Upayavira On Sun, Jun 28, 2015, at 09:37 PM, Summer Shire wrote: > Hi All, > > I have two indexers (Independent processes ) writing to a common solr > core. > If One indexer process issued an optimize on the core > I want the second indexer to wait adding docs until the optimize has > finished. > > Are there ways I can do this programmatically? > pinging the core when the optimize is happening is returning OK because > technically > solr allows you to update when an optimize is happening. > > any suggestions ? > > thanks, > Summer