Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.18.0
-
None
-
None
-
LINUX, WINDOWS
-
Reviewed
Description
HADOOP-2656 changes the way BlockScanner and BlockScannerThread are created. TestHDFSServerPorts tries to create a DataNode object, but expects a failure while starting it. As part of creating DataNode object we create BlockScanner object but not its corresponding BlockScannerThread as Daemon. While in shutdown() we check if BlockScannerThread is not null, then call BlockScanner.shutdown() to close a reference to LogFile it holds.
Now, on NFS mount and Windows, if a reference to file remains deleting the directory either leaves a .nfsXXXXX file or is not allowed (on windows). This was causing the test to fail.