apache/hadoop · error · ServiceFailedException

Failed to stop backup services

Error message

Failed to stop backup services

What it means

BackupState.exitState: calling stopActiveServices while leaving the backup state threw an IOException, wrapped as ServiceFailedException because the backup node's services could not be shut down cleanly.

Solutions

  1. Check the BackupNode log for errors during shutdown; usually safe to ignore if followed by successful exit, but investigate hung checkpoint threads.
Defensive patterns

Strategy: try-catch

When it happens

Trigger: NameNode leaving backup state when backup services fail to stop cleanly.

Common situations: See trigger scenarios.


AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22). Data as JSON: /api/errors/c0219325b1115ff2. Report an issue: GitHub.

Appendix: source

Thrown at hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/BackupState.java:62

  public boolean shouldPopulateReplQueues() {
    return false;
  }

  @Override // HAState
  public void enterState(HAContext context) throws ServiceFailedException {
    try {
      context.startActiveServices();
    } catch (IOException e) {
      throw new ServiceFailedException("Failed to start backup services", e);
    }
  }

  @Override // HAState
  public void exitState(HAContext context) throws ServiceFailedException {
    try {
      context.stopActiveServices();
    } catch (IOException e) {
      throw new ServiceFailedException("Failed to stop backup services", e);
    }
  }

  @Override // HAState
  public void prepareToExitState(HAContext context) throws ServiceFailedException {
    context.prepareToStopStandbyServices();
  }
}

View on GitHub (pinned to 2add963021)