Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.7.1
-
None
-
Reviewed
Description
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.