{"record":{"id":"584d0f8c2f5054d3","repo":"apache/hadoop","slug":"block-oldreplicainfo-reopen-failed-unable-to-584d0f","errorCode":null,"errorMessage":"Block ${oldReplicaInfo} reopen failed.  Unable to move block file ${oldReplica.getBlockFile()} to rbw dir ${newBlkFile}","messagePattern":"Block (.+?) reopen failed\\.  Unable to move block file (.+?) to rbw dir (.+?)","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/LocalReplicaInPipeline.java","lineNumber":445,"sourceCode":"\n    try {\n      fileIoProvider.rename(getVolume(), oldmeta, newmeta);\n    } catch (IOException e) {\n      throw new IOException(\"Block \" + oldReplicaInfo + \" reopen failed. \" +\n                            \" Unable to move meta file  \" + oldmeta +\n                            \" to rbw dir \" + newmeta, e);\n    }\n\n    try {\n      fileIoProvider.rename(getVolume(), oldBlockFile, newBlkFile);\n    } catch (IOException e) {\n      try {\n        fileIoProvider.rename(getVolume(), newmeta, oldmeta);\n      } catch (IOException ex) {\n        LOG.warn(\"Cannot move meta file \" + newmeta +\n            \"back to the finalized directory \" + oldmeta, ex);\n      }\n      throw new IOException(\"Block \" + oldReplicaInfo + \" reopen failed. \" +\n          \" Unable to move block file \" + oldReplica.getBlockFile() +\n          \" to rbw dir \" + newBlkFile, e);\n    }\n  }\n\n  @Override // ReplicaInPipeline\n  public ReplicaInfo getReplicaInfo() {\n    return this;\n  }\n}\n","sourceCodeStart":427,"sourceCodeEnd":456,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/LocalReplicaInPipeline.java#L427-L456","documentation":"Error \"Block ${oldReplicaInfo} reopen failed.  Unable to move block file ${oldReplica.getBlockFile()} to rbw dir ${newBlkFile}\" thrown in apache/hadoop.","triggerScenarios":"Reopening a block for append fails because the block data file cannot be moved into the RBW directory.","commonSituations":"Reopening a block failed because the block file could not be moved into the RBW directory. Check disk space and volume health.","solutions":["Check volume permissions, free space, and disk errors; the block data file move to the rbw directory failed.","Resolve the I/O problem, then retry the append; the client will re-establish the pipeline."],"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-23T01:17:44.959Z"}