{"record":{"id":"844dde757d8dc08e","repo":"apache/hadoop","slug":"fs-image-is-being-downloaded-from-another-nn","errorCode":null,"errorMessage":"FS image is being downloaded from another NN","messagePattern":"FS image is being downloaded from another NN","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSImage.java","lineNumber":1204,"sourceCode":"      removeFromCheckpointing(imageTxId);\n    }\n    //Update NameDirSize Metric\n    getStorage().updateNameDirSize();\n\n    if (exitAfterSave.get()) {\n      LOG.error(\"NameNode process will exit now... The saved FsImage \" +\n          nnf + \" is potentially corrupted.\");\n      ExitUtil.terminate(-1);\n    }\n  }\n\n  /**\n   * @see #saveFSImageInAllDirs(FSNamesystem, NameNodeFile, long, Canceler)\n   */\n  protected synchronized void saveFSImageInAllDirs(FSNamesystem source, long txid)\n      throws IOException {\n    if (!addToCheckpointing(txid)) {\n      throw new IOException((\"FS image is being downloaded from another NN\"));\n    }\n    try {\n      saveFSImageInAllDirs(source, NameNodeFile.IMAGE, txid, null);\n    } finally {\n      removeFromCheckpointing(txid);\n    }\n  }\n\n  public boolean addToCheckpointing(long txid) {\n    return currentlyCheckpointing.add(txid);\n  }\n\n  public void removeFromCheckpointing(long txid) {\n    currentlyCheckpointing.remove(txid);\n  }\n\n  void save(FSNamesystem src, File dst) throws IOException {\n    final long txid = getCorrectLastAppliedOrWrittenTxId();","sourceCodeStart":1186,"sourceCodeEnd":1222,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSImage.java#L1186-L1222","documentation":"Error \"FS image is being downloaded from another NN\" thrown in apache/hadoop.","triggerScenarios":"A storage directory operation is rejected because an fsimage download from another NameNode is in progress.","commonSituations":"See trigger scenarios.","solutions":["Wait for the ongoing image download to finish; avoid concurrent bootstrap/save operations."],"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"}