apache/hadoop · error · IOException

Found no edit logs to download on NN since txid

Error message

Found no edit logs to download on NN since txid ${sig.mostRecentCheckpointTxId}

What it means

Thrown by downloadCheckpointFiles when the RemoteEditLogManifest from the NameNode is empty — no edit logs since sig.mostRecentCheckpointTxId exist on the NN (its storage dirs may have been wiped), so the checkpoint cannot be assembled.

Solutions

  1. Ensure edit logs since the last checkpoint txid exist on the NameNode/JournalNodes and are reachable, then retry the checkpoint.
Defensive patterns

Strategy: validation

When it happens

Trigger: The SecondaryNameNode checkpoint finds no edit log files to download newer than its last checkpoint.

Common situations: Edits retention removed logs, JournalNodes unavailable, or checkpoint running against the wrong NN address.


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

Appendix: source

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

  }

  /**
   * Download <code>fsimage</code> and <code>edits</code>
   * files from the name-node.
   * @return true if a new image has been downloaded and needs to be loaded
   * @throws IOException
   */
  static boolean downloadCheckpointFiles(
      final URL nnHostPort,
      final FSImage dstImage,
      final CheckpointSignature sig,
      final RemoteEditLogManifest manifest
  ) throws IOException {
    
    // Sanity check manifest - these could happen if, eg, someone on the
    // NN side accidentally rmed the storage directories
    if (manifest.getLogs().isEmpty()) {
      throw new IOException("Found no edit logs to download on NN since txid " 
          + sig.mostRecentCheckpointTxId);
    }
    
    long expectedTxId = sig.mostRecentCheckpointTxId + 1;
    if (manifest.getLogs().get(0).getStartTxId() != expectedTxId) {
      throw new IOException("Bad edit log manifest (expected txid = " +
          expectedTxId + ": " + manifest);
    }

    try {
        Boolean b = UserGroupInformation.getCurrentUser().doAs(
            new PrivilegedExceptionAction<Boolean>() {
  
          @Override
          public Boolean run() throws Exception {
            dstImage.getStorage().cTime = sig.cTime;

            // get fsimage

View on GitHub (pinned to 2add963021)