@Test
  public void originatingDcNotFoundWithTwoReplicasInBootstrap() {
    List<Port> portList = Collections.singletonList(new Port(PORT, PortType.PLAINTEXT));
    List<String> mountPaths = Collections.singletonList("mockMountPath");
    datanodes = Collections.singletonList(new MockDataNodeId(portList, mountPaths, "dc-0"));
    mockPartition = new MockPartitionId();
    populateReplicaList(2, ReplicaState.BOOTSTRAP);
    populateReplicaList(1, ReplicaState.LEADER);
    localDcName = datanodes.get(0).getDatacenterName();
    mockClusterMap = new MockClusterMap(false, datanodes, 1, Collections.singletonList(mockPartition), localDcName);
    originatingDcName = localDcName;
    Properties props = new Properties();
    props.setProperty(RouterConfig.ROUTER_GET_SUCCESS_TARGET, Integer.toString(1));
    props.setProperty(RouterConfig.ROUTER_GET_REQUEST_PARALLELISM, Integer.toString(3));
    props.setProperty(RouterConfig.ROUTER_OPERATION_TRACKER_CHECK_ALL_ORIGINATING_REPLICAS_FOR_NOT_FOUND,
        Boolean.toString(false));
    OperationTracker ot = getOperationTracker(props, true, 3, RouterOperation.GetBlobOperation, true, true);
    sendRequests(ot, 3, false);
    ot.onResponse(inflightReplicas.poll(), TrackedRequestFinalState.NOT_FOUND);
    ot.onResponse(inflightReplicas.poll(), TrackedRequestFinalState.NOT_FOUND);
    ot.onResponse(inflightReplicas.poll(), TrackedRequestFinalState.NOT_FOUND);
    assertFalse("Operation should not succeed", ot.hasSucceeded());
    assertTrue("Operation should fail on NOT_FOUND since all replicas return NOT_FOUND", ot.hasFailedOnNotFound());
    assertTrue("Operation should have some unavailability", ot.hasSomeUnavailability());
    assertTrue("Operation should be done", ot.isDone());
  }
Test hasFailedOnNotFound() case when we 2 replicas in originating DC are in bootstrap (not up).
ambry-router/src/test/java/com/github/ambry/router/OperationTrackerTest.java