Closed GoogleCodeExporter closed 8 years ago
Thanks, I look into it.
Original comment by Louwrentius
on 16 Nov 2010 at 11:19
Hi.
I think I found the problem.
Some files were being copied into the watched directory via NFS. It
seems the NFS daemon writes the files in chunks instead of a single
write-then-close event. Hence inotify was triggered multiple times for
the same file which broke ppss.
Vince.
Original comment by vince.sw...@gtempaccount.com
on 18 Nov 2010 at 2:28
Thanks, that is very interesting. it means that PPSS should take this into
account.
Original comment by Louwrentius
on 19 Nov 2010 at 9:36
Ha, you where quite right:
server:/storage/ppss# inotifywait /storage/ppss/ -m -e close -q --format '%w%f'
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
/storage/ppss/test1.bin
I will see what I can do about this.
Original comment by Louwrentius
on 21 Nov 2010 at 6:49
It seems that adding | uniq sorta resolved this issue, but there is a cacht.
When an event is caught, the file must be closed. But due to the multiple close
events, the file is reported to be closed before the file transfer is finished.
So inotify must be disabled for directories that are exported through NFS.
Regular polling should be used.
Original comment by Louwrentius
on 21 Nov 2010 at 6:59
PPSS now disabled inotify if the source directory is exported with NFS. If this
can be confirmed, it is appreciated.
Original comment by Louwrentius
on 21 Nov 2010 at 7:52
Original comment by Louwrentius
on 26 Nov 2010 at 9:01
Original issue reported on code.google.com by
vince.sw...@gtempaccount.com
on 14 Nov 2010 at 6:19