Some inotify events are ignored

Bug #541027 reported by Mario Ceresa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rollmeback
Status tracked in Trunk
Trunk
Fix Released
Critical
Mario Ceresa

Bug Description

rollback.conf and rollback.pid CREATE events are not received!

See:

$ python track_changes.py /mnt/btrfs/

Activating watcher on /mnt/btrfs/
CREATED DIR root/bin
CREATED DIR root/etc
CREATED DIR root/lib
CREATED DIR root/usr
CREATED DIR root/var
CREATED DIR root/etc/rollback
CREATED DIR root/var/rollback
CREATED root/bin/rollback.sh
CHANGED METADATA root/bin/rollback.sh
CHANGED METADATA root/etc/rollback/rollback.conf
CHANGED METADATA root/var/rollback/rollback.pid
MODIFIED root/bin/rollback.sh
MODIFIED root/bin/rollback.sh
MODIFIED root/etc/rollback/rollback.conf
MODIFIED root/var/rollback/rollback.pid
DELETED root/var/rollback/rollback.pid
DELETED DIR root/var/rollback

Revision history for this message
Mario Ceresa (mrceresa) wrote :

Made a test case. Run with

$ python test.py

failure is random at each execution

I use pyinotify 0.8.9 for python 2.6

Changed in rollmeback:
status: New → Incomplete
summary: - Sometime CREATE inotify events are ignored
+ Some inotify events are ignored
Mario Ceresa (mrceresa)
Changed in rollmeback:
status: Incomplete → Triaged
status: Triaged → Confirmed
Revision history for this message
Mario Ceresa (mrceresa) wrote :

Filed a bug request upstream:

http://trac.dbzteam.org/pyinotify/ticket/39

Changed in rollmeback:
importance: Undecided → Critical
assignee: nobody → Mario Ceresa (mrceresa)
Revision history for this message
Mario Ceresa (mrceresa) wrote :

As reported in:

http://trac.dbzteam.org/pyinotify/ticket/39

it's a timing problem.

Adding a time.sleep(0.01) just before the end of run_example.py solves the problem.

Changed in rollmeback:
status: Confirmed → Fix Released
status: Fix Released → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.