TestHDFSServerPorts fails on LINUX (NFS mounted directory) and on WINDOWS
-------------------------------------------------------------------------
Key: HADOOP-3393
URL: https://issues.apache.org/jira/browse/HADOOP-3393
Project: Hadoop Core
Issue Type: Bug
Components: dfs
Affects Versions: 0.18.0
Environment: LINUX, WINDOWS
Reporter: lohit vijayarenu
Fix For: 0.18.0
Attachments: HADOOP-HDFSServerPorts.patch
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.