You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2023/03/07 15:55:00 UTC

[jira] [Commented] (SLING-11797) Log Jobs Added with No Assigned Topology Capability at Info

    [ https://issues.apache.org/jira/browse/SLING-11797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17697505#comment-17697505 ] 

Carsten Ziegeler commented on SLING-11797:
------------------------------------------

I'm not against changing the log level, but keep in mind that this can be misleading. I wouldn't use the log for monitoring, but rather look for unassigned jobs through the API

> Log Jobs Added with No Assigned Topology Capability at Info
> -----------------------------------------------------------
>
>                 Key: SLING-11797
>                 URL: https://issues.apache.org/jira/browse/SLING-11797
>             Project: Sling
>          Issue Type: Bug
>          Components: Event
>    Affects Versions: Event 4.3.6
>            Reporter: Dan Klco
>            Assignee: Dan Klco
>            Priority: Minor
>             Fix For: Event 4.3.8
>
>
> When creating a job where the topology does not provide a capability for the topic, the JobManagerImpl logs the following message at the DEBUG level:
> {quote}Persisting job {} into queue {}{quote}
>  
> This makes it challenging to identify/diagnose issues with jobs not being assigned as: * It requires enabling debug logging on the JobManagerImpl which can be quite verbose, especially under load
>  * Since most production instances do not run with DEBUG, these situations will not be available in logs
>  * The log message does not indicate that this job will not be immediately assigned to be processed
> Instead, the JobManagerImpl should log a message at least at INFO level which indicates that the Job being persisted does not have an assigned target.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)