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 "Vikas Saurabh (JIRA)" <ji...@apache.org> on 2015/10/07 13:26:26 UTC
[jira] [Commented] (OAK-3492) reduce DocumentDiscoveryLiteService
hasBacklog WARNs
[ https://issues.apache.org/jira/browse/OAK-3492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14946697#comment-14946697 ]
Vikas Saurabh commented on OAK-3492:
------------------------------------
Would it make sense for using [OAK_VERSION_KEY|https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/ClusterNodeInfo.java#L60] to see it's pre-1.3.4 and not worry about that entry in that case?
I feeling missing (not observing) a single WARN for a legitimate issue is easy - as it'd come during startup and there are way too many logs at the time to notice.
> reduce DocumentDiscoveryLiteService hasBacklog WARNs
> ----------------------------------------------------
>
> Key: OAK-3492
> URL: https://issues.apache.org/jira/browse/OAK-3492
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: core
> Affects Versions: 1.3.7
> Reporter: Stefan Egli
> Assignee: Stefan Egli
> Fix For: 1.3.8
>
>
> With DocumentDiscoveryLiteService in 1.3.7 the following WARN has been noticed:
> {code}
> 07.10.2015 06:38:16.575 *TRACE* [DocumentDiscoveryLiteService-BackgroundWorker-[4]] org.apache.jackrabbit.oak.plugins.document.DocumentDiscoveryLiteService hasBacklog: start. clusterNodeId: 1
> 07.10.2015 06:38:16.575 *TRACE* [DocumentDiscoveryLiteService-BackgroundWorker-[4]] org.apache.jackrabbit.oak.plugins.document.DocumentDiscoveryLiteService getLastKnownRevision: end. clusterNode:
> 1, lastKnownRevision: r14e0c0898cc-0-1
> 07.10.2015 06:38:16.575 *WARN* [DocumentDiscoveryLiteService-BackgroundWorker-[4]] org.apache.jackrabbit.oak.plugins.document.DocumentDiscoveryLiteService hasBacklog: node has lastWrittenRootRev=
> null
> {code}
> This happens every 5sec. While the warning is somewhat legitimate as it cannot determine the backlog of a not-active instance - it is spam if it occurs every 5sec. So rather than warning constantly, there should only be one warning and then a fall-back to log.debug afterwards.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)