-
Bug
-
Resolution: Fixed
-
Critical
-
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