hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yu Li (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-15148) Resolve IS2_INCONSISTENT_SYNC findbugs warnings in AuthenticationTokenSecretManager
Date Thu, 21 Jan 2016 04:09:40 GMT
Yu Li created HBASE-15148:

             Summary: Resolve IS2_INCONSISTENT_SYNC findbugs warnings in AuthenticationTokenSecretManager
                 Key: HBASE-15148
                 URL: https://issues.apache.org/jira/browse/HBASE-15148
             Project: HBase
          Issue Type: Bug
            Reporter: Yu Li
            Assignee: Yu Li

After efforts in HBASE-15118, we still see IS2_INCONSISTENT_SYNC warning in AuthenticationTokenSecretManager
in [HadoopQA report | https://builds.apache.org/job/PreCommit-HBASE-Build/197/artifact/patchprocess/branch-findbugs-hbase-server-warnings.html]
for HBASE-13960:
In class org.apache.hadoop.hbase.security.token.AuthenticationTokenSecretManager
Field org.apache.hadoop.hbase.security.token.AuthenticationTokenSecretManager.lastKeyUpdate
Synchronized 50% of the time
Unsynchronized access at AuthenticationTokenSecretManager.java:[line 343]
Synchronized access at AuthenticationTokenSecretManager.java:[line 278]

Checking the code, we could see {{synchronized (this)}} in line 343 is synchronizing on the
instance of the subclass {{AuthenticationTokenSecretManager$LeaderElector}} while {{lastKeyUpdate}}
is a variable of the parent class instance

Will fix the issue in this JIRA

This message was sent by Atlassian JIRA

View raw message