Hello,

I have implemented a Solr EventListener, which should be fired after
committing.
This works fine on the Solr-Master Instance and  it also worked in Solr 3.5
on any Slave Instance.
I upgraded my installation to Solr 4.2 and now the postCommit event is not
fired any more on the replication (Slave) instances, which is a huge
problem, as other cache have to be invalidated, when replication took place.

This is my configuration solrconfig.xml on the slaves:

  <updateHandler class="solr.DirectUpdateHandler2">
    <autoCommit>
      <maxTime>10000</maxTime><!-- in ms -->
    </autoCommit>
        <!-- OSCache-Invalidierung -->
    <listener event="postCommit"
class="de.materna.cms.solr.listener.SolrPostCommitListener">
...
    </listener>

  </updateHandler>

...
  <requestHandler name="/replication" class="solr.ReplicationHandler" >
    <lst name="slave">
      <str name="masterUrl">http://localhost:9101/solr/Core1</str>
      <str name="pollInterval">00:03:00</str>
    </lst>
  </requestHandler>

Any hints?

Best regards

Reply via email to