[Bug 680113] New: bad mtime handling of atjobs dir causes delayed execution of jobs
https://bugzilla.novell.com/show_bug.cgi?id=680113 https://bugzilla.novell.com/show_bug.cgi?id=680113#c0 Summary: bad mtime handling of atjobs dir causes delayed execution of jobs Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: All OS/Version: All Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: ischwarze@astaro.com QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=419646) --> (http://bugzilla.novell.com/attachment.cgi?id=419646) fix: rescan the atjobs dir whenever its mtime changed User-Agent: Mozilla/5.0 (X11; U; OpenBSD i386; en-US; rv:1.9.2.13) Gecko/20110216 Firefox/3.6.13 When a running /usr/sbin/atd process did a cycle through run_loop() while the mtime of the atjobs directory happened to be set to a future time, this atd process will no more execute any at jobs until the system time catches up to the time that happened to be set as the mtime of the atjobs directory. Both existing and newly created at jobs are affected and get delayed. Reproducible: Always Steps to Reproduce: 1. Schedule an at job to be run in ten minutes. 2. Set the mtime of the atjobs directory to one hour in the future, for example using the -t option of touch(1). 2. Restart the atd(8). 3. Schedule an at job to be run immediately. Actual Results: Execution of both jobs will be delayed for at least one hour. Neither touching the atjobs directory nor restarting the atd once again is going to help. To work around the problem, you have to *both* touch the atjobs directory *and* restart the atd after touching it. Expected Results: Changes of the mtime of the atjobs directory should always cause the atd to rescan the directory, no matter in which direction the mtime changed. Submitted upstream to Debian on May 14, 2009: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=528671 Patch was completely ignored by Debian so far. Unless I missed something, I got absolutely zero feedback. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=680113
https://bugzilla.novell.com/show_bug.cgi?id=680113#c1
Ingo Schwarze
https://bugzilla.novell.com/show_bug.cgi?id=680113
https://bugzilla.novell.com/show_bug.cgi?id=680113#c
zj jia
https://bugzilla.novell.com/show_bug.cgi?id=680113
https://bugzilla.novell.com/show_bug.cgi?id=680113#c2
Vitezslav Cizek
Steps to Reproduce: 1. Schedule an at job to be run in ten minutes. $ echo "command" | at +5 min $ atq 3 2011-04-15 17:31 a cizek
2. Set the mtime of the atjobs directory to one hour in the future, for example using the -t option of touch(1). $ sudo touch -t 04151755 /var/spool/atjobs $ ls -ld /var/spool/atjobs drwx------. 2 at at 4096 Apr 15 2011 /var/spool/atjobs/
2. Restart the atd(8). $ sudo rcatd restart $ atq 3 2011-04-15 17:31 a cizek
3. Schedule an at job to be run immediately. $ echo "command" | at now
The command gets executed immediately.
Actual Results: Execution of both jobs will be delayed for at least one hour.
Actually all the jobs get executed right on time. Did I miss something, when I was trying to reproduce? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=680113
https://bugzilla.novell.com/show_bug.cgi?id=680113#c3
Ingo Schwarze
https://bugzilla.novell.com/show_bug.cgi?id=680113
https://bugzilla.novell.com/show_bug.cgi?id=680113#c4
Vitezslav Cizek
https://bugzilla.novell.com/show_bug.cgi?id=680113
https://bugzilla.novell.com/show_bug.cgi?id=680113#c5
Vitezslav Cizek
https://bugzilla.novell.com/show_bug.cgi?id=680113
https://bugzilla.novell.com/show_bug.cgi?id=680113#c6
--- Comment #6 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com