hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Devaraj Das" <d...@yahoo-inc.com>
Subject RE: C API for Hadoop DFS
Date Tue, 02 May 2006 04:22:51 GMT
> Do dfsConnect and dfsOpenFile return NULL on failure?
Yes.

> Shouldn't dfsSeek, dfsRename, dfsCreateDirectory and 
> dfsSetWorkingDirectory each have a return value to indicate success or 
> failure?  Or are they assumed to never fail?
Yes these functions should have return values. I will update the API spec.
Thanks for pointing this out.

-----Original Message-----
From: David Bowen [mailto:dbowen@yahoo-inc.com] 
Sent: Monday, May 01, 2006 8:13 AM
To: hadoop-dev@lucene.apache.org
Subject: Re: C API for Hadoop DFS


I'm curious about error handling. 

Do dfsConnect and dfsOpenFile return NULL on failure?

Shouldn't dfsSeek, dfsRename, dfsCreateDirectory and 
dfsSetWorkingDirectory each have a return value to indicate success or 
failure?  Or are they assumed to never fail?

- David




Mime
View raw message