{"record":{"id":"c0219325b1115ff2","repo":"apache/hadoop","slug":"failed-to-stop-backup-services","errorCode":null,"errorMessage":"Failed to stop backup services","messagePattern":"Failed to stop backup services","errorType":"exception","errorClass":"ServiceFailedException","httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/BackupState.java","lineNumber":62,"sourceCode":"  public boolean shouldPopulateReplQueues() {\n    return false;\n  }\n\n  @Override // HAState\n  public void enterState(HAContext context) throws ServiceFailedException {\n    try {\n      context.startActiveServices();\n    } catch (IOException e) {\n      throw new ServiceFailedException(\"Failed to start backup services\", e);\n    }\n  }\n\n  @Override // HAState\n  public void exitState(HAContext context) throws ServiceFailedException {\n    try {\n      context.stopActiveServices();\n    } catch (IOException e) {\n      throw new ServiceFailedException(\"Failed to stop backup services\", e);\n    }\n  }\n\n  @Override // HAState\n  public void prepareToExitState(HAContext context) throws ServiceFailedException {\n    context.prepareToStopStandbyServices();\n  }\n}\n","sourceCodeStart":44,"sourceCodeEnd":71,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/BackupState.java#L44-L71","documentation":"Error \"Failed to stop backup services\" thrown in apache/hadoop.","triggerScenarios":"NameNode leaving backup state when backup services fail to stop cleanly.","commonSituations":"See trigger scenarios.","solutions":["Check the BackupNode log for errors during shutdown; usually safe to ignore if followed by successful exit, but investigate hung checkpoint threads."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-22T20:17:22.307Z"}