Uploaded image for project: 'Solr Search Provider'
  1. Solr Search Provider
  2. MGNLEESOLR-52

Wrong indexing and removing indexes on publication and unpublication

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.1.1
    • 2.0

      For publication indexes are sometimes remove when they should not be. This is caused by how activation works. Activation first remove the node and then recreate the node again, but the events in onEvent method are not ordered. Sometimes Event.NODE_ADDED is before Event.Node_REMOVED and in this case we first update index, but then also remove the index.

      For unpublication indexes are correctly removed, but the exception is logged. This is because property jcr:lockOwner is added to node and then node is removed. So two events are triggered and the indexing fails for Event.PROPERTY_ADDED because node already doesn't exist.

      2015-03-11 14:48:23,536 INFO  nolia.module.exchangetransactional.XAReceiveFilter: 199:1426099703227 User superuser successfully deactivated /demo-project/members-area on webapp.
      2015-03-11 14:48:24,542 ERROR info.magnolia.module.indexer.DataIndexer          : Indexer [websiteIndexer]: Repository exception when indexing changes.
      javax.jcr.ItemNotFoundException: 74b23a3d-957a-45d5-b3bf-9bbab61a9b6b
      

        Acceptance criteria

              mdivilek Milan Divilek
              rgange Richard Gange
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD