You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Craig Condit (Jira)" <ji...@apache.org> on 2024/01/17 15:49:00 UTC

[jira] [Resolved] (YUNIKORN-2320) Package-level loogging breaks custom logging configuration

     [ https://issues.apache.org/jira/browse/YUNIKORN-2320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Craig Condit resolved YUNIKORN-2320.
------------------------------------
     Fix Version/s: 1.5.0
    Target Version: 1.5.0
        Resolution: Fixed

Merged to master. Thanks [~of773] for the contribution!

> Package-level loogging breaks custom logging configuration
> ----------------------------------------------------------
>
>                 Key: YUNIKORN-2320
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-2320
>             Project: Apache YuniKorn
>          Issue Type: Bug
>          Components: core - common
>            Reporter: Ovidiu Feodorov
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.5.0
>
>         Attachments: Screenshot 2024-01-03 at 3.36.33 PM.png
>
>
> {{objects.rateLimitedLog}} is initialized during package initialization phase, triggering {{log.once}} before {{log.InitializeLogger()}} has a chance to apply custom logging configuration. As result, the logging system does not accept custom configuration anymore.
> {{entrypoint.TestCustomLoggingConfiguration()}} demonstrates the problem.
> There are several ways to address the problem:
> 1. Lazy initialize the package-level logging variable {{objects.rateLimitedLog.}}
> 2. (preferred) Remove the package-level variable and replace it with an Application instance-level variable, which is also lazily initialized.
> More details available here: [https://yunikornworkspace.slack.com/archives/CLNUW68MU/p1704322291697499]
> Call stack that demonstrates the problem attached.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org