-
Type:
Improvement
-
Status: Resolved
-
Priority:
Trivial
-
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
TestFileCreation#testLeaseExpireHardLimit uses DataNodeTestUtils#getFile() to open, read and verify blocks written on the DN. It’s better to use getBlockInputStream() which does exactly the same thing but hides the detail of getting the block file on disk.