[
https://issues.apache.org/jira/browse/HDFS-10485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15314946#comment-15314946
]
Xiaobing Zhou commented on HDFS-10485:
--------------------------------------
Thank you [~ajisakaa] for the v02 patch. Can you explain why this has been
removed?
{code}
676 numTransactionsBatchedInSync += editsBatchedInSync;
{code}
It seems numTransactionsBatchedInSync is set to meaningful value nowhere.
And also, this issue has no cause and effect relation to HDFS-10341, am I
right? Thanks.
> Fix findbugs warning in FSEditLog.java in branch-2
> --------------------------------------------------
>
> Key: HDFS-10485
> URL: https://issues.apache.org/jira/browse/HDFS-10485
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Akira AJISAKA
> Assignee: Akira AJISAKA
> Attachments: HDFS-10485.01.branch-2.patch,
> HDFS-10485.02.branch-2.patch
>
>
> Found 1 findbugs warning when creating a patch for branch-2 in HDFS-10341
> (https://builds.apache.org/job/PreCommit-HDFS-Build/15639/artifact/patchprocess/branch-findbugs-hadoop-hdfs-project_hadoop-hdfs-warnings.html)
> {noformat}
> Inconsistent synchronization of
> org.apache.hadoop.hdfs.server.namenode.FSEditLog.numTransactionsBatchedInSync;
> locked 50% of time
> Bug type IS2_INCONSISTENT_SYNC (click for details)
> In class org.apache.hadoop.hdfs.server.namenode.FSEditLog
> Field
> org.apache.hadoop.hdfs.server.namenode.FSEditLog.numTransactionsBatchedInSync
> Synchronized 50% of the time
> Unsynchronized access at FSEditLog.java:[line 676]
> Unsynchronized access at FSEditLog.java:[line 676]
> Synchronized access at FSEditLog.java:[line 1254]
> Synchronized access at FSEditLog.java:[line 716]
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]