hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jui-Yu Hsieh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-18439) Subclasses of o.a.h.h.chaos.actions.Action all use the same logger
Date Sun, 06 Aug 2017 09:25:00 GMT

    [ https://issues.apache.org/jira/browse/HBASE-18439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16115728#comment-16115728

Jui-Yu Hsieh commented on HBASE-18439:

I made a mistake about the time 

> Subclasses of o.a.h.h.chaos.actions.Action all use the same logger
> ------------------------------------------------------------------
>                 Key: HBASE-18439
>                 URL: https://issues.apache.org/jira/browse/HBASE-18439
>             Project: HBase
>          Issue Type: Bug
>          Components: integration tests
>            Reporter: Mike Drob
>            Assignee: Sahil Aggarwal
>            Priority: Minor
>              Labels: beginner
> A bunch of the actions all use the same logger inherited from the super class. We should
have them declare distinct loggers, either each one in class or perhaps we can do something
dynamically like {{LogFactory.getLogger(MethodHandles.lookup().lookupClass()}} and drop the
static modifier on the log field.
> I'm not sure that exact incantation would actually work, but the MethodHandles approach
in general is how logger resolution happens in Solr and it actually works out pretty well.

This message was sent by Atlassian JIRA

View raw message