@Override
  public boolean test(SyncReplicationState state, SyncReplicationState newState) {
    return state == SyncReplicationState.ACTIVE || state == SyncReplicationState.DOWNGRADE_ACTIVE
      || newState == SyncReplicationState.ACTIVE
      || newState == SyncReplicationState.DOWNGRADE_ACTIVE;
  }
Check whether we need to reject the replication request from source cluster.
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/RejectReplicationRequestStateChecker.java