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 "Davide Giannella (JIRA)" <ji...@apache.org> on 2017/03/06 13:51:36 UTC
[jira] [Closed] (OAK-5742) more logging when
ChangeProcessor.stopAndWait fails
[ https://issues.apache.org/jira/browse/OAK-5742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davide Giannella closed OAK-5742.
---------------------------------
Bulk close for 1.6.1
> 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
> Labels: candidate_oak_1_6
> Fix For: 1.7.0, 1.8, 1.6.1
>
>
> 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)