On Sep 30, 2008, at 1:37 PM, Bryan Duxbury wrote:

Hey all,

Why is it that FileSystem.rename returns true or false instead of throwing an exception? It seems incredibly inconvenient to get a false result and then have to go poring over the namenode logs looking for the actual error message. I had this case recently where I'd forgotten to create the parent directories, but I had no idea it was failing since there were no exceptions.


Speculating...

To be consistent to with java.io.File.renameTo?(http://java.sun.com/javase/6/docs/api/java/io/File.html#renameTo(java.io.File) )

Arun

Reply via email to