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 55d0d3026a
commit d4e0fc74d4
2 changed files with 3 additions and 1 deletions

View File

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

View File

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