HDFS-7065. Pipeline close recovery race can cause block corruption.
Contributed by Kihwal Lee.
(cherry picked from commit bf27b9ca57
)
This commit is contained in:
parent
2a6c9f0725
commit
35fccfda3e
|
@ -440,6 +440,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
|
||||
|
|
|
@ -904,7 +904,7 @@ class FsDatasetImpl implements FsDatasetSpi<FsVolumeImpl> {
|
|||
}
|
||||
|
||||
@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
|
||||
|
|
Loading…
Reference in New Issue