Downloaded packages unexpectedly removed by a parallel transaction #2129
Labels
Priority: MEDIUM
Triaged
Someone on the DNF 5 team has read the issue and determined the next steps to take
If two transactions run in parallel - such as when DNF Automatic is configured - the RPM packages downloaded by one transaction may be removed by the other.
The reason is that the
libdnf5::repo::TempFilesMemory
class stores the list of temporary files (i.e. downloaded RPM packages) in a toml file, which is shared between all running dnf5 instances.Edit: this has another side-effect. The rest of the packages downloaded by the first transaction are never cleaned by following successful transaction. They will stay on the system until
dnf clean
is executed.It's a regression compared to dnf4, which locks the transaction before the download of RPM packages begins.
The text was updated successfully, but these errors were encountered: