Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop, mail # dev - FileUtil.copyMerge()


Copy link to this message
-
FileUtil.copyMerge()
Karthik Kambatla 2010-10-11, 05:25
Hi guys,

[Not very sure if this is the right place for this]

This is regarding the issue
https://issues.apache.org/jira/browse/HADOOP-2120

common/src/java/org/apache/hadoop/fs/FileUtil.java has a bug in
FileUtil.copyMerge().  The method takes a directory, and returns false if
the input is a directory. The condition misses a negation.

if (srcFS.getFileStatus(srcDir).isDirectory())
      return false;

if (!srcFS.getFileStatus(srcDir).isDirectory())
      return false;

Can you please do the needful. Also, how should one go about acquiring a
membership on JIRA?

Thanks
Karthik