You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Stefan Egli (JIRA)" <ji...@apache.org> on 2017/02/21 17:02:44 UTC
[jira] [Created] (OAK-5742) more logging when
ChangeProcessor.stopAndWait fails
Stefan Egli created OAK-5742:
--------------------------------
Summary: more logging when ChangeProcessor.stopAndWait fails
Key: OAK-5742
URL: https://issues.apache.org/jira/browse/OAK-5742
Project: Jackrabbit Oak
Issue Type: Improvement
Components: jcr
Affects Versions: 1.6.0
Reporter: Stefan Egli
Assignee: Stefan Egli
Fix For: 1.7.0, 1.8
When ChangeProcessor.stopAndWait fails (returns false) the [ObservationManager issues a log.warn|https://github.com/apache/jackrabbit-oak/blob/be59ea9a098279fd243f83ff0ecbcb8fa71249db/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/observation/ObservationManagerImpl.java#L457] resulting in something like this:
{noformat}
20.02.2017 16:40:05.773 *WARN* [FelixStartLevel] org.apache.jackrabbit.oak.jcr.observation.ObservationManagerImpl Timed out waiting for change processor to stop after 1000 milliseconds. Falling back to asynchronous stop on ChangeProcessor [listenerId=56, tracker=//*[11111b]@org.apache.sling.jcr.resource.internal.JcrResourceListener, contentSession=session-1181, eventCount=org.apache.jackrabbit.oak.plugins.metric.CompositeStats@3da35e6e, eventDuration=org.apache.jackrabbit.oak.plugins.metric.CompositeStats@308ca75f, commitRateLimiter=null, running=false]
{noformat}
Unfortunately - in case of the Sling JcrResourceListener - you can't know which actual {{ResourceChangeListener}} is hiding behind it.
The above log.warn should be improved to also show the {{getToString()}} of the listener which provides more details including the actual ResourceChangeListener.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)