protected synchronized void reportBadSink(SinkPeer sinkPeer) {
    ServerName serverName = sinkPeer.getServerName();
    int badReportCount = badReportCounts.compute(serverName, (k, v) -> v == null ? 1 : v + 1);
    if (badReportCount > badSinkThreshold) {
      this.sinkServers.remove(serverName);
      if (sinkServers.isEmpty()) {
        chooseSinks();
      }
    }
  }
Report a {@code SinkPeer} as being bad (i.e. an attempt to replicate to it failed). If a single
SinkPeer is reported as bad more than replication.bad.sink.threshold times, it will be removed
from the pool of potential replication targets.
@param sinkPeer The SinkPeer that had a failed replication attempt on it
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/HBaseReplicationEndpoint.java