APISonar


org.apache.hadoop.ozone.protocol.commands.RetriableDatanodeEventWatcher.LOG

> org > apache > hadoop > ozone > protocol > commands > RetriableDatanodeEventWatcher > LOG
org APIs apache APIs hadoop APIs ozone APIs protocol APIs commands APIs RetriableDatanodeEventWatcher APIs LOG APIs

Example 1
private void waitForDatanodeCommandRetry()
      throws TimeoutException, InterruptedException {
    cluster.shutdownHddsDatanode(0);
    LogCapturer logCapturer =
        LogCapturer.captureLogs(RetriableDatanodeEventWatcher.LOG);
    logCapturer.clearOutput();
    GenericTestUtils.waitFor(() -> logCapturer.getOutput()
            .contains("RetriableDatanodeCommand type=deleteBlocksCommand"),
        500, 5000);
    cluster.restartHddsDatanode(0, true);
  }