HBASE-20082 Fix findbugs errors only on master which are introduced by HBASE-19397

This commit is contained in:
zhangduo 2018-02-26 10:22:09 +08:00
parent a34f129aff
commit 8c74d177f6
2 changed files with 3 additions and 1 deletions

View File

@ -50,6 +50,8 @@ public class RefreshPeerProcedure extends Procedure<MasterProcedureEnv>
private PeerOperationType type;
@edu.umd.cs.findbugs.annotations.SuppressWarnings(value = "IS2_INCONSISTENT_SYNC",
justification = "Will never change after construction")
private ServerName targetServer;
private boolean dispatched;

View File

@ -403,7 +403,7 @@ public class ReplicationSourceManager implements ReplicationListener {
toStartup.add(replicationSource);
}
}
for (ReplicationSourceInterface replicationSource : oldsources) {
for (ReplicationSourceInterface replicationSource : toStartup) {
replicationSource.startup();
}
}