axkibe/lsyncd — Issue #12: Very poor performance on syncing deletes
Author: axkibe
Created: 2011-11-16 14:56:04+00:00
State: open

Originally filed by caffeine...@gmail.com on 2009-11-25T19:47:11

What steps will reproduce the problem?
1. Recursively delete some files
2. Watch the log as lsyncd tries to rsync files that are no longer there
3. Takes forever - the more that was deleted, the longer it takes

What is the expected output? What do you see instead?

I would expect that lsyncd would at least do a stat on the file to see if
it existed before trying to rsync it. Obviously if it is not there, lsyncd
should discard the sync and move on to the next inotify event - eventually
the event containing the correct sync level will get hit and rsync can then
be triggered. This would be MUCH faster.

What version of the product are you using? On what operating system?

lsync 1.26 / rsync version 3.0.6 protocol version 30
2.6.18-164.6.1.el5 #1 SMP Tue Nov 3 16:12:36 EST 2009 x86_64 x86_64 x86_64
GNU/Linux

Please provide any additional information below.

File creation or updates work great - just deletes where the problem seems
to be limited.