@Test
  public void testRetryButGetBlobSucceeds() throws Exception {
    // Make sure we are work on a simple blob
    blobSize = maxChunkSize - 1;
    doPut();
    RouterConfig originalConfig = routerConfig;
    Properties props = getDefaultNonBlockingRouterProperties(true);
    props.setProperty(RouterConfig.ROUTER_GET_BLOB_RETRY_LIMIT_COUNT, "10");
    props.setProperty(RouterConfig.ROUTER_GET_BLOB_RETRY_LIMIT_IN_SEC, "10");
    routerConfig = new RouterConfig(new VerifiableProperties(props));
    try {
      getAndAssertSuccess();
      // Make sure there is no retry
      assertEquals(0, routerMetrics.getBlobRetryCount.getCount());
    } finally {
      routerConfig = originalConfig;
    }
  }
Test the case where all requests time out within the SocketNetworkClient.
@throws Exception
ambry-router/src/test/java/com/github/ambry/router/GetBlobOperationTest.java