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

Duo Zhang resolved HBASE-27446.
-------------------------------
    Fix Version/s: 2.6.0
                   3.0.0-alpha-4
                   2.5.2
                   2.4.16
     Hadoop Flags: Reviewed
       Resolution: Fixed

Pushed to branch-2.4+.

Thanks [~zghao] for reviewing!

> Spotbugs 4.7.2 report a lot of logging errors when generating report
> --------------------------------------------------------------------
>
>                 Key: HBASE-27446
>                 URL: https://issues.apache.org/jira/browse/HBASE-27446
>             Project: HBase
>          Issue Type: Bug
>          Components: build, jenkins, scripts
>            Reporter: Duo Zhang
>            Assignee: Duo Zhang
>            Priority: Major
>             Fix For: 2.6.0, 3.0.0-alpha-4, 2.5.2, 2.4.16
>
>
> Like this
> {noformat}
> Unexpected problem occured during version sanity check
> 11:27:32  Reported exception:
> 11:27:32  java.lang.AbstractMethodError: 
> org.apache.logging.slf4j.SLF4JServiceProvider.getRequestedApiVersion()Ljava/lang/String;
> 11:27:32      at 
> org.slf4j.LoggerFactory.versionSanityCheck(LoggerFactory.java:297)
> 11:27:32      at 
> org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:141)
> 11:27:32      at org.slf4j.LoggerFactory.getProvider(LoggerFactory.java:421)
> 11:27:32      at 
> org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:407)
> 11:27:32      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:356)
> 11:27:32      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:382)
> 11:27:32      at 
> edu.umd.cs.findbugs.PluginLoader.<clinit>(PluginLoader.java:113)
> 11:27:32      at 
> edu.umd.cs.findbugs.DetectorFactoryCollection.getCoreResource(DetectorFactoryCollection.java:353)
> 11:27:32      at 
> edu.umd.cs.findbugs.SystemProperties.loadPropertiesFromConfigFile(SystemProperties.java:84)
> 11:27:32      at 
> edu.umd.cs.findbugs.SystemProperties.<clinit>(SystemProperties.java:67)
> 11:27:32      at 
> edu.umd.cs.findbugs.DetectorFactoryCollection.<clinit>(DetectorFactoryCollection.java:57)
> 11:27:32      at edu.umd.cs.findbugs.workflow.Filter.main(Filter.java:693)
> {noformat}
> Checked the dependencies, it uses slf4j-api-2.0.0 and log4j2 2.18.0 together, 
> which may be caused by LOG4J2-3139.
> In spotbugs 4.7.3 they bumped log4j2 to 2.19.0, which should have fixed the 
> problem.
> https://github.com/spotbugs/spotbugs/issues/2176
> Let's also do an upgrade.



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

Reply via email to