Jörg Hoh created OAK-5216:
-----------------------------
Summary: AsyncIndexUpdate: CONCURRENT_UPDATE should contain
relevant stacktrace
Key: OAK-5216
URL: https://issues.apache.org/jira/browse/OAK-5216
Project: Jackrabbit Oak
Issue Type: Improvement
Components: lucene
Affects Versions: 1.0.33
Reporter: Jörg Hoh
Priority: Minor
We are currently investigating problems regarding a failing AsyncIndexUpdate.
The first error message starts like this:
{noformat}
30.11.2016 11:05:04.172 *WARN* [pool-11-thread-5]
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:90)
at org.apache.jackrabbit.oak.Oak.createContentRepository(Oak.java:518)
at
com.adobe.granite.repository.impl.SlingRepositoryManager.createRepository(SlingRepositoryManager.java:357)
at
com.adobe.granite.repository.impl.SlingRepositoryManager.acquireRepository(SlingRepositoryManager.java:228)
at
org.apache.sling.jcr.base.AbstractSlingRepositoryManager.start(AbstractSlingRepositoryManager.java:304)
at
com.adobe.granite.repository.impl.SlingRepositoryManager.activate(SlingRepositoryManager.java:205)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at <unknown class>.<unknown method>(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:222)
at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:37)
at
org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:615)
at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:499)
at
org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:295)
at
org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:302)
{noformat}
at that time the application was already running for some hours, this did not
happen on startup!
Also the code indicates, that the exception itself is created on creation of
the AsyncIndexUpdate service, so the stacktrace does not give any insight under
which condition the exception occurred at all. This should be changed in a way,
that the stacktrace contains relevant information about the root cause of the
exception.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)