[
https://issues.apache.org/jira/browse/HBASE-20744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16553617#comment-16553617
]
Xu Cang commented on HBASE-20744:
---------------------------------
Findbugs is ok now.
but javac complains about this:
[https://builds.apache.org/job/PreCommit-HBASE-Build/13748/artifact/patchprocess/diff-compile-javac-hbase-hadoop2-compat.txt]
> Address FindBugs warnings in branch-1
> -------------------------------------
>
> Key: HBASE-20744
> URL: https://issues.apache.org/jira/browse/HBASE-20744
> Project: HBase
> Issue Type: Bug
> Reporter: Ted Yu
> Assignee: Xu Cang
> Priority: Major
> Fix For: 1.5.0
>
> Attachments: HBASE-20744.branch-1.001.patch,
> HBASE-20744.branch-1.002.patch
>
>
> From
> https://builds.apache.org/job/HBase%20Nightly/job/branch-1/350//JDK8_Nightly_Build_Report_(Hadoop2)/
> :
> {code}
> FindBugs module:hbase-common
> Inconsistent synchronization of
> org.apache.hadoop.hbase.io.encoding.EncodedDataBlock$BufferGrabbingByteArrayOutputStream.ourBytes;
> locked 50% of time Unsynchronized access at EncodedDataBlock.java:50% of
> time Unsynchronized access at EncodedDataBlock.java:[line 258]
> {code}
> {code}
> FindBugs module:hbase-hadoop2-compat
> java.util.concurrent.ScheduledThreadPoolExecutor stored into non-transient
> field MetricsExecutorImpl$ExecutorSingleton.scheduler At
> MetricsExecutorImpl.java:MetricsExecutorImpl$ExecutorSingleton.scheduler At
> MetricsExecutorImpl.java:[line 51]
> {code}
> {code}
> FindBugs module:hbase-server
> instanceof will always return false in
> org.apache.hadoop.hbase.quotas.RegionServerQuotaManager.checkQuota(Region,
> int, int, int), since a org.apache.hadoop.hbase.quotas.RpcThrottlingException
> can't be a org.apache.hadoop.hbase.quotas.ThrottlingException At
> RegionServerQuotaManager.java:in
> org.apache.hadoop.hbase.quotas.RegionServerQuotaManager.checkQuota(Region,
> int, int, int), since a org.apache.hadoop.hbase.quotas.RpcThrottlingException
> can't be a org.apache.hadoop.hbase.quotas.ThrottlingException At
> RegionServerQuotaManager.java:[line 193]
> instanceof will always return true for all non-null values in
> org.apache.hadoop.hbase.quotas.RegionServerQuotaManager.checkQuota(Region,
> int, int, int), since all
> org.apache.hadoop.hbase.quotas.RpcThrottlingException are instances of
> org.apache.hadoop.hbase.quotas.RpcThrottlingException At
> RegionServerQuotaManager.java:for all non-null values in
> org.apache.hadoop.hbase.quotas.RegionServerQuotaManager.checkQuota(Region,
> int, int, int), since all
> org.apache.hadoop.hbase.quotas.RpcThrottlingException are instances of
> org.apache.hadoop.hbase.quotas.RpcThrottlingException At
> RegionServerQuotaManager.java:[line 199]
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)