apache/hadoop · error · IOException
Bad edit log manifest (expected txid = ${expectedTxId}: ${ma
Error message
Bad edit log manifest (expected txid = ${expectedTxId}: ${manifest} What it means
Error "Bad edit log manifest (expected txid = ${expectedTxId}: ${manifest}" thrown in apache/hadoop.
Source
Thrown at hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/SecondaryNameNode.java:405
* @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
if (sig.mostRecentCheckpointTxId ==
dstImage.getStorage().getMostRecentCheckpointTxId()) {
LOG.info("Image has not changed. Will not download image.");
} else {
LOG.info("Image has changed. Downloading updated image from NN.");
MD5Hash downloadedHash = TransferFsImage.downloadImageToStorage(View on GitHub (pinned to 2add963021)
Solutions
- Check JournalNode/NameNode edit log health and storage; a corrupted or inconsistent edit manifest indicates missing or damaged edit segments.
When it happens
Trigger: The downloaded edit log manifest does not start at the expected transaction ID.
Common situations: Partially failed edits transfer or mixed storage directories with divergent txid ranges.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/183e0a8c6a37ef93.
Report an issue: GitHub.