On Fri, Aug 5, 2011 at 9:42 AM, Jean-Daniel Cryans <jdcry...@apache.org>wrote:

> On Fri, Aug 5, 2011 at 8:52 AM, M. C. Srivas <mcsri...@gmail.com> wrote:
> > The normal behavior would be for the HMaster to make the hlog read-only
> > before processing it.... very simple fencing and works on all Posix or
> > close-to-Posix systems.  Does that not work on HDFS?
>
> I'm sure you know the answer to that :)
>

Actually, I really don't know HDFS details ... so does chmod work for all?

We're thinking for submitting a patch to Hbase that does the following:

recoverLease() {
   if (fs is DistributedFileSystem) {
     call the NN's recover lease API
   } else if (fs supports setPermissions) {
     call fs.setPermissions
   } else {
       log WARN ....
  }
}

Does that look ok?



>
> I agree it would be a better solution as it won't rely on the
> "particular" semantics of a single dfs.
>
> J-D
>

Reply via email to