Rogue process
I have a development sandbox for a client where they have added a lot of images and projects then deleted them. There is some process that keeps running an inefficient query against assets that are no longer in the dam. The warning about the query is:
17.11.2015 09:30:10.133 *WARN* [pool-6-thread-2] org.apache.jackrabbit.oak.spi.query.Cursors$TraversingCursor Traversed 39000 nodes with filter Filter(query=select [jcr:path], [jcr:score], * from [nt:unstructured] as a where name(a) = 'metadata' and [itemNumber] = 'S-10572' and isdescendantnode(a, '/content/dam/images') /* xpath: /jcr:root/content/dam/images//element(*, nt:unstructured)[fn:name() = 'metadata' and @itemNumber = 'S-10572'] */, path=/content/dam/images//*, property=[itemNumber=[S-10572]]); consider creating an index or changing the query
I've tried adding an oak index on the itemNumber but it doesn't change the warning. The odd part for me is that all of the workflows have been terminated, the replication queues are all empty, and I can't find what is still making these queries. The warning is logged every 1000 nodes traversed until it reaches the end of the nodes then changes to a new item number and does the same thing over and over. The images were imported and deleted over a month ago but these queries still keep processing. The AEM instance has been stopped, reindexed, and restarted a few times since these images were deleted as well.
What could be causing this?