-
Type:
Improvement
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.7.1
-
Fix Version/s: 2.8.0, 3.0.0-alpha1
-
Component/s: test
-
Labels:None
-
Target Version/s:
-
Hadoop Flags:Reviewed
In TestWriteToReplica and TestFsDatasetImpl, tests directly creates block and metadata files:
replicaInfo.getBlockFile().createNewFile(); replicaInfo.getMetaFile().createNewFile();
It leaks the implementation details of FsDatasetImpl. This JIRA proposes to use FsDatasetImplTestUtils (HDFS-9188) to create replicas.