hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lei liu <liulei...@gmail.com>
Subject Re: same edits file is loaded more than once
Date Mon, 05 Nov 2012 16:06:01 GMT
> I research FSEditLog.loadFSEdits method, I find OP_ADD and OP_CLOSE
> opration first  delete inode(call  FSDirectory.unprotectedDelete method),
> then re-add inode(call FSDirectory.unprotectedAddFile method),  so if NN
> read one OP_ADD transaction log and add one inode to namespace  for the
> operation, when next time NN read the same transaction log form same edits
> file,NN first delete the inode , then add same inode to namespace again,
> So  I think this is no harmful,even if the same transaction log is loaded
> more than once.
>
> If there are some thing wrong,please give me some advice.
>


> Thanks
> LiuLei
>
>
>
>

Mime
View raw message