HDFS-7065. Pipeline close recovery race can cause block corruption.

Contributed by Kihwal Lee.
This commit is contained in:
Kihwal Lee 2014-09-19 09:00:13 -05:00
parent f02d934fed
commit bf27b9ca57
2 changed files with 3 additions and 1 deletions

View File

@ -777,6 +777,8 @@ Release 2.6.0 - UNRELEASED
HDFS-6840. Clients are always sent to the same datanode when read
is off rack. (wang)
HDFS-7065. Pipeline close recovery race can cause block corruption (kihwal)
BREAKDOWN OF HDFS-6134 AND HADOOP-10150 SUBTASKS AND RELATED JIRAS
HDFS-6387. HDFS CLI admin tool for creating & deleting an

View File

@ -904,7 +904,7 @@ public synchronized ReplicaInPipeline recoverAppend(ExtendedBlock b,
}
@Override // FsDatasetSpi
public String recoverClose(ExtendedBlock b, long newGS,
public synchronized String recoverClose(ExtendedBlock b, long newGS,
long expectedBlockLen) throws IOException {
LOG.info("Recover failed close " + b);
// check replica's state