You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org> on 2010/07/16 04:25:50 UTC
[jira] Created: (HDFS-1304) There is no unit test for
HftpFileSystem.open(..)
There is no unit test for HftpFileSystem.open(..)
-------------------------------------------------
Key: HDFS-1304
URL: https://issues.apache.org/jira/browse/HDFS-1304
Project: Hadoop HDFS
Issue Type: Improvement
Components: test
Reporter: Tsz Wo (Nicholas), SZE
HftpFileSystem.open(..) first opens an URL connection to namenode's FileDataServlet and then is redirected to datanode's StreamFile servlet. Such redirection does not work in the unit test environment because the redirect URL uses real hostname instead of localhost.
One way to get around it is to use fault-injection in order to replace the real hostname with localhost.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.