HDFS-8969. Clean up findbugs warnings for HDFS-8823 and HDFS-8932. Contributed by Anu Engineer.
This commit is contained in:
parent
90fe7bcc3b
commit
f97a0f8c2c
|
@ -1240,6 +1240,9 @@ Release 2.8.0 - UNRELEASED
|
|||
HDFS-8961. Investigate lock issue in o.a.h.hdfs.shortcircuit.
|
||||
DfsClientShmManager.EndpointShmManager. (Mingliang Liu via wheat9)
|
||||
|
||||
HDFS-8969. Clean up findbugs warnings for HDFS-8823 and HDFS-8932.
|
||||
(Anu Engineer via wheat9)
|
||||
|
||||
Release 2.7.2 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -1695,7 +1695,7 @@ public class FSEditLog implements LogsPurgeable {
|
|||
* Return total number of syncs happened on this edit log.
|
||||
* @return long - count
|
||||
*/
|
||||
public long getTotalSyncCount() {
|
||||
public synchronized long getTotalSyncCount() {
|
||||
if (editLogStream != null) {
|
||||
return editLogStream.getNumSync();
|
||||
} else {
|
||||
|
|
|
@ -254,9 +254,7 @@ public class NamenodeFsck implements DataEncryptionKeyFactory {
|
|||
NumberReplicas numberReplicas= bm.countNodes(blockInfo);
|
||||
out.println("Block Id: " + blockId);
|
||||
out.println("Block belongs to: "+iNode.getFullPathName());
|
||||
if (blockInfo != null) {
|
||||
out.println("No. of Expected Replica: " + blockInfo.getReplication());
|
||||
}
|
||||
out.println("No. of Expected Replica: " + blockInfo.getReplication());
|
||||
out.println("No. of live Replica: " + numberReplicas.liveReplicas());
|
||||
out.println("No. of excess Replica: " + numberReplicas.excessReplicas());
|
||||
out.println("No. of stale Replica: " +
|
||||
|
|
Loading…
Reference in New Issue