I am back to writing this code as part of periodic block verification.

Another approach I am thinking of is to check curFile.lastModified() and backupFile.lastModified(). As long as these two are different, we could assume they are different files. This is simpler than trying to lock the files.

Raghu.

Raghu Angadi wrote:

Thanks Nigel.

Another hack I can think of is, if DataNode is not finalized we can try to lock current/subdir.../blk_id and previous/subdir../blk_id. If second lock fails, we can assume they are the same.

Raghu.

Nigel Daley wrote:
Raghu,

LGPL not allowed in distro:
http://people.apache.org/~cliffs/3party.html

Nige

On Nov 6, 2007, at 11:32 PM, Raghu Angadi wrote:



Reply via email to