/etc/cron.daily/apt randomly delays other jobs

Bug #727685 reported by Hadmut Danisch on 2011-03-02
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: apt

Hi,

(affects 10.04 LTS as well)

anacron executes
  run-parts --report /etc/cron.daily
daily. run-parts runs the job in /etc/cron.daily one after the other in alphabetical order.

/etc/cron.daily/apt is one of the first to be executed, and contains a random_sleep to avoid all ubuntu machines on the world hitting the server at the same time. This makes sense, but randomly delays all the other tasks in /etc/cron.daily, and causes inconsistencies, e.g. logrotates do not cover exactly 24 hours, but sometimes more, sometimes less.

Would be nice to send this apt job either to the background or run it as the last job (ie. rename to zzapt or something like this).

regards

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: apt 0.8.3ubuntu7
ProcVersionSignature: Ubuntu 2.6.35-25.44-generic 2.6.35.10
Uname: Linux 2.6.35-25-generic x86_64
Architecture: amd64
Date: Wed Mar 2 10:59:29 2011
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100427.1)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/tcsh
SourcePackage: apt

Related branches

Hadmut Danisch (hadmut) wrote :
Torsten Spindler (tspindler) wrote :

Thank you for reporting this issue. It is indeed a very good thought to move the apt cron job out of the way so the random sleep does not delay other jobs unnecessarily.

Changed in apt (Ubuntu):
status: New → Confirmed
Torsten Spindler (tspindler) wrote :

I've built a test package in https://launchpad.net/~tspindler/+archive/apt. Can you test it, best on an expendable virtual machine, and report if it fixes the issue for you?

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt - 1.2.10

---------------
apt (1.2.10) unstable; urgency=medium

  [ Zhou Mo ]
  * zh_CN.po: update simplified Chinese translation. (100%)

  [ Julian Andres Klode ]
  * test-apt-download-progress: Use a larger file for testing
  * Allow lowering trust level of a hash via config

  [ Michael Vogt ]
  * Use systemd.timer instead of a cron job (Closes: #600262, #709675, #663290)
    (LP: #246381, #727685)

  [ David Kalnischkies ]
  * use buffered writing for InRelease splitting

  [ Takuma Yamada ]
  * Japanese program translation update (Closes: 819938)

 -- Michael Vogt <email address hidden> Tue, 05 Apr 2016 20:23:47 +0200

Changed in apt (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers