summaryrefslogtreecommitdiff
path: root/releasenotes/notes/fix-prune-database-a4873bd4dead7b5f.yaml
blob: 6e036a754a61af1996923661769020a0dfe6f601 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
fixes:
  - |
    The `zuul-admin prune-database` command did not completely delete
    expected data from the database.  It may not have deleted all of
    the buildsets older than the specified cutoff time, and it may
    have left orphaned data in ancillary tables.  This has been
    corrected and it should now work as expected.  Additionally, a
    `--batch-size` argument has been added so that it may delete data
    in multiple transactions which can facilitate smoother operation
    when run while Zuul is operational.

    Users who have previously run the command may need to manually
    delete rows from the `zuul_build`, `zuul_build_event`,
    `zuul_artifact`, and `zuul_provides` tables which do not have
    corresponding entries in the `zuul_buildset` table.