[ https://issues.apache.org/jira/browse/OAK-2360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14323962#comment-14323962 ]
Stefan Egli commented on OAK-2360: ---------------------------------- It did fail at an earlier version - so if it passes now, I guess we're fine. > IllegalStateException: OrderedPropertyIndex index is used even when no index > is available > ----------------------------------------------------------------------------------------- > > Key: OAK-2360 > URL: https://issues.apache.org/jira/browse/OAK-2360 > Project: Jackrabbit Oak > Issue Type: Bug > Components: core > Affects Versions: 1.0.8 > Environment: 1.0.8.r1644758 > Reporter: Stefan Egli > Assignee: Davide Giannella > Fix For: 1.2, 1.0.12 > > Attachments: OAK-2360-test.patch > > > The follow exception occurs when having an index defined that has no > underlying matching content. > The index definition: > {code} > {"jcr:primaryType":"oak:QueryIndexDefinition","declaringNodeTypes":["cq:PageContent"],"propertyNames":["publishedDate"],"direction":"descending","type":"ordered","async":"async","reindex":false,"reindexCount":1} > {code} > The exception: > {code} > 15.12.2014 16:50:01.532 *ERROR* [qtp358299822-183] > com.test.migration.mbean.impl.V8MigrationMBeanImpl Exception thrown while > trying to migrate > java.lang.IllegalStateException: OrderedPropertyIndex index is used even when > no index is available for filter Filter(query=select [jcr:path], [jcr:score], > * from [cq:PageContent] as a where [migrationId] = > '835dd11ee2e4a410VgnVCM100000d7c1a8c0____' and isdescendantnode(a, > '/content') order by [publishedDate] desc /* xpath: > /jcr:root/content//element(*, cq:Pag > eContent)[((@migrationId = '835dd11ee2e4a410VgnVCM100000d7c1a8c0____'))] > order by @publishedDate descending */, path=/content//*, > property=[migrationId=835dd11ee2e4a410VgnVCM100000d7c1a8c0____]) > at > org.apache.jackrabbit.oak.plugins.index.property.OrderedPropertyIndex.query(OrderedPropertyIndex.java:277) > at > org.apache.jackrabbit.oak.query.ast.SelectorImpl.execute(SelectorImpl.java:322) > at > org.apache.jackrabbit.oak.query.QueryImpl$RowIterator.fetchNext(QueryImpl.java:627) > at > org.apache.jackrabbit.oak.query.QueryImpl$RowIterator.hasNext(QueryImpl.java:651) > at > org.apache.jackrabbit.oak.jcr.query.QueryResultImpl$1.fetch(QueryResultImpl.java:108) > at > org.apache.jackrabbit.oak.jcr.query.QueryResultImpl$1.<init>(QueryResultImpl.java:104) > at > org.apache.jackrabbit.oak.jcr.query.QueryResultImpl.getRows(QueryResultImpl.java:91) > at > com.day.cq.search.impl.builder.QueryImpl.execute(QueryImpl.java:416) > at > com.day.cq.search.impl.builder.QueryImpl.getResult(QueryImpl.java:108) > at > com.test.search.querybuilder.impl.QueryBuilderCoreImpl.execute(QueryBuilderCoreImpl.java:190) > at > com.test.search.querybuilder.impl.QueryBuilderCoreImpl.getResults(QueryBuilderCoreImpl.java:134) > at > com.test.search.querybuilder.impl.QueryBuilderCoreImpl.getPages(QueryBuilderCoreImpl.java:72) > at > com.test.search.querybuilder.impl.ContentQueryBuilderImpl.getByMigrationIds(ContentQueryBuilderImpl.java:347) > at > com.test.migration.utils.V8ContentPullUtils.getMigratedContentPage(V8ContentPullUtils.java:108) > at > com.test.migration.utils.impl.V8ContentPullManagerImpl.pull(V8ContentPullManagerImpl.java:73) > at > com.test.migration.mbean.impl.V8MigrationMBeanImpl.migrate(V8MigrationMBeanImpl.java:76) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:279) > at > com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112) > at > com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46) > at > com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237) > at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138) > at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252) > at javax.management.StandardMBean.invoke(StandardMBean.java:405) > at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) > at > com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) > at > com.adobe.granite.jmx.internal.JMXConsolePlugin.invoke(JMXConsolePlugin.java:176) > at > com.adobe.granite.jmx.internal.JMXConsolePlugin.doPost(JMXConsolePlugin.java:134) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) > at > org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:526) > at > org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:450) > at > org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:339) > at > org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:300) > at > org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:93) > at > org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:50) > at > org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31) > at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:128) > at > org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108) > at > org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80) > at > org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46) > at > org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31) > at > org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:89) > at > org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108) > at > org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80) > at > org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46) > at > org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31) > at > com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:298) > at > org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108) > at > org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80) > at > org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46) > at > org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31) > at > org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:290) > at > org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108) > at > org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80) > at > org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46) > at > org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31) > at > org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:55) > at > org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108) > at > org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80) > at > org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46) > at > org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31) > at > org.apache.sling.featureflags.impl.FeatureManager.doFilter(FeatureManager.java:115) > at > org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108) > at > org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80) > at > org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46) > at > org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31) > at > org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:75) > at > org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108) > at > org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80) > at > org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46) > at > org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31) > at > org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:76) > at > org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:49) > at > org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) > at > org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) > at > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501) > at > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229) > at > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) > at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428) > at > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) > at > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) > at > org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) > at org.eclipse.jetty.server.Server.handle(Server.java:370) > at > org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494) > at > org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982) > at > org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043) > at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865) > at > org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) > at > org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) > at > org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667) > at > org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) > at > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) > at > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) > at java.lang.Thread.run(Thread.java:745) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)