status sitory pruner needs to remove only once

Bug #1577593 reported by Horacio Durán on 2016-05-02
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju
Low
Unassigned

Bug Description

StatusHistoryPruner worker removes old status history entries trying to keep either N time of backlog or N MBytes of logs whatever is smaller, currently it deletes the time backlog and then, if the size is still over the passed limit it deletes logs until the size is reached.
Ideally it should check size and backlog first and then delete once to avoid hitting twice the db.
The expected workflow:

* validate request sanity
* figure out oldest record to keep
  * (try both, take most recent result)
* remove all older records

Ian Booth (wallyworld) on 2016-05-03
Changed in juju-core:
importance: Undecided → Medium
status: New → Triaged
milestone: none → 2.0.1
affects: juju-core → juju
Changed in juju:
milestone: 2.0.1 → none
milestone: none → 2.0.1
Curtis Hovey (sinzui) on 2016-11-01
Changed in juju:
milestone: 2.0.1 → none
Changed in juju:
importance: Medium → Low
assignee: Horacio Durán (hduran-8) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers