Query traversal exception while upgrading to 6.4
Hi all,
After upgrading our code from 6.1 to 6.4, we are getting below error for one of the query causing impact in functionality.
java.lang.UnsupportedOperationException: The query read or traversed more than 100000 nodes. To avoid affecting other tasks, processing was stopped.
at org.apache.jackrabbit.oak.query.FilterIterators.checkReadLimit(FilterIterators.java:70) [org.apache.jackrabbit.oak-core:1.8.2]
The same query listed below used to work in 6.1, but having issues in 6.4.
String query = SELECT * FROM [cq:PageContent] WHERE ([_____________] IS NOT NULL OR [____________] IS NOT NULL
Iterator<Resource> iterator = adminResourceResolver.findResources(query, Query.JCR_SQL2);
I tried manual oak:index creation as well as increasing In memory read to limit in Query Engine Settings Service OSGI, but it didn't help.
Help or Pointers to fix this in AEM 6.4 will be helpful.
Thanks

