You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Duo Zhang (Jira)" <ji...@apache.org> on 2021/04/14 00:28:00 UTC

[jira] [Resolved] (HBASE-25762) Improvement for some debug-logging guards

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

Duo Zhang resolved HBASE-25762.
-------------------------------
    Resolution: Fixed

Pushed to branch-2.3+.

Thanks [~coder_chenzhi] for contributing.

> Improvement for some debug-logging guards
> -----------------------------------------
>
>                 Key: HBASE-25762
>                 URL: https://issues.apache.org/jira/browse/HBASE-25762
>             Project: HBase
>          Issue Type: Improvement
>          Components: logging, Performance
>            Reporter: Chen Zhi
>            Assignee: Chen Zhi
>            Priority: Minor
>             Fix For: 3.0.0-alpha-1, 2.5.0, 2.4.3, 2.3.6
>
>         Attachments: HBASE-25762.patch
>
>
> Some potential expensive debug-logging calls are partially guarded by `isXXXEnabled()`. Therefore,
> - Moving some potential expensive statements into the adjacent `isDebugEnabled` in `NettyRpcDuplexHandler.java`
> - Moving the `isTraceEnabled` up to the beginning of `printChoreDetails` and `printChoreServiceDetails` in `ChoreService.java `.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)