Description
Getting following log in version oak 1.3.16 :
WARN [2016-09-07 23:09:05,573] org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate: [async] The index update failed ! org.apache.jackrabbit.oak.api.CommitFailedException: OakAsync0001: Concurrent update detected ! at org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate.<clinit>(AsyncIndexUpdate.java:93) ! at org.apache.jackrabbit.oak.Oak.createNewContentRepository(Oak.java:649) ! at org.apache.jackrabbit.oak.Oak.createContentRepository(Oak.java:623) ! at org.apache.jackrabbit.oak.jcr.Jcr.createContentRepository(Jcr.java:372) ! at org.apache.jackrabbit.oak.jcr.Jcr.createRepository(Jcr.java:380) ! at com.dharbor.dms.repository.impl.RepositoryManagerImpl.createRepository(RepositoryManagerImpl.java:100) ! at com.dharbor.dms.repository.impl.RepositoryManagerImpl.start(RepositoryManagerImpl.java:76) ! at com.dharbor.dms.repository.impl.RepositoryManagerImpl.<clinit>(RepositoryManagerImpl.java:423) ! at com.dharbor.dms.repository.impl.DMSRAOFactory.getRepositoryManager(DMSRAOFactory.java:36) ! at com.dharbor.dms.repository.impl.MetaDataRAOImpl.<init>(MetaDataRAOImpl.java:63) ! at com.dharbor.dms.repository.impl.MetaDataRAOImpl.<clinit>(MetaDataRAOImpl.java:65) ! at com.dharbor.dms.repository.impl.DMSRAOFactory.getMetaDataRaoInstance(DMSRAOFactory.java:30) ! at com.dharbor.dms.content.impl.MetaDataServiceImpl.createMetadata(MetaDataServiceImpl.java:54) ! at com.dharbor.dms.content.impl.ContentManagerImpl.createMetadata(ContentManagerImpl.java:52) ! at com.dharbor.rest.handler.impl.UploadActionHandler.handle(UploadActionHandler.java:60) ! at com.dharbor.rest.facade.DmsServiceFacade.executeAction(DmsServiceFacade.java:165) ! at com.dharbor.dms.services.impl.JackrabbitCoreAdapter.save(JackrabbitCoreAdapter.java:54) ! at com.dharbor.dms.restws.impl.FileResourceImpl.uploadFile(FileResourceImpl.java:72) ! at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ! at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ! at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ! at java.lang.reflect.Method.invoke(Method.java:498) ! at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) ! at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144) ! at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161) ! at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160) ! at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99) ! at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389) ! at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347) ! at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102) ! at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326) ! at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) ! at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) ! at org.glassfish.jersey.internal.Errors.process(Errors.java:315) ! at org.glassfish.jersey.internal.Errors.process(Errors.java:297) ! at org.glassfish.jersey.internal.Errors.process(Errors.java:267) ! at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) ! at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) ! at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154) ! at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473) ! at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427) ! at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388) ! at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341) ! at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228) ! at io.dropwizard.jetty.NonblockingServletHolder.handle(NonblockingServletHolder.java:49) ! at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1689) ! at io.dropwizard.servlets.ThreadNameFilter.doFilter(ThreadNameFilter.java:34) ! at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676) ! at io.dropwizard.jersey.filter.AllowedMethodsFilter.handle(AllowedMethodsFilter.java:50) ! at io.dropwizard.jersey.filter.AllowedMethodsFilter.doFilter(AllowedMethodsFilter.java:44) ! at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676) ! at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581) ! at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1174) ! at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511) ! at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1106) ! at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ! at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) ! at com.codahale.metrics.jetty9.InstrumentedHandler.handle(InstrumentedHandler.java:240) ! at io.dropwizard.jetty.RoutingHandler.handle(RoutingHandler.java:51) ! at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:396) ! at io.dropwizard.jetty.BiDiGzipHandler.handle(BiDiGzipHandler.java:68) ! at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:56) ! at org.eclipse.jetty.server.handler.StatisticsHandler.handle(StatisticsHandler.java:169) ! at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) ! at org.eclipse.jetty.server.Server.handle(Server.java:524) ! at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:319) ! at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:253) ! at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273) ! at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) ! at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) ! at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) ! at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) ! at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) ! at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) ! at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) ! ... 1 common frames omitted ! Causing: java.lang.Exception: Another copy of the index update is already running; skipping this update. Time left for lease to expire 404s ! at org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate.runWhenPermitted(AsyncIndexUpdate.java:383) ! at org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate.run(AsyncIndexUpdate.java:322) ! at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ! at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) ! at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) ! at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) ! at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ! at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ! at java.lang.Thread.run(Thread.java:745)
Attachments
Issue Links
- duplicates
-
OAK-5159 Killing the process may stop async index update to to 30 minutes, for DocumentStore (MongoDB, RDB)
- Open