[Bug 899755] New: Better integration between zypper and PackageKit needed
http://bugzilla.opensuse.org/show_bug.cgi?id=899755 Bug ID: 899755 Summary: Better integration between zypper and PackageKit needed Classification: openSUSE Product: openSUSE Factory Version: 201409* Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp Assignee: zypp-maintainers@forge.provo.novell.com Reporter: dimstar@opensuse.org QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- on openSUSE Factory and 13.2, PackageKit gets a bigger role due to the usage of gnome-software, which also checks the repo metadata in the background if the user types anything in the Overview screen (like: I want to start gimp, but don't have it installed; g-software will find it and suggest it right away; based on appstream data) now, this makes PackageKit almost permanently around (we still have it configured now to terminate after 15s idle, whenever you type anything in g-s, it's being fired up). Preferably, the PK daemon would not need to have to be terminated at all, but would be allowed to run. PK is built in a way that a lock is taken whenever an action on the DB happens (refresh, get-updates, install,...) using ZyppJob::ZyppJob. This should be enhanced to be able to share the lock with other things relying on zypp. As far as I've seen, zypper currently simply agressibly wants the packagekitd to terminate, regardless if it's there in idle or having a lock on the DB. This is a rude attack. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=899755
Bjørn Lie
http://bugzilla.opensuse.org/show_bug.cgi?id=899755
Michael Andres
zypp = ZYppFactory::instance ().getZYpp ();
is the one that keeps the inter process lock, which prevents zypper from starting. This instance however tends to stay in memory, even if all ZYpp::Ptr references were dropped. This is what needs to be fixed otherwise only terminating packagekitd (unloading libzypp) is the only way to release the lock. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=899755
Dominique Leuenberger
http://bugzilla.opensuse.org/show_bug.cgi?id=899755
--- Comment #2 from Dominique Leuenberger
http://bugzilla.opensuse.org/show_bug.cgi?id=899755
Michael Andres
http://bugzilla.opensuse.org/show_bug.cgi?id=899755
Dominique Leuenberger
http://bugzilla.opensuse.org/show_bug.cgi?id=899755
http://bugzilla.opensuse.org/show_bug.cgi?id=899755#c4
Michael Andres
http://bugzilla.opensuse.org/show_bug.cgi?id=899755
http://bugzilla.opensuse.org/show_bug.cgi?id=899755#c12
Michael Andres
http://bugzilla.opensuse.org/show_bug.cgi?id=899755
http://bugzilla.opensuse.org/show_bug.cgi?id=899755#c16
--- Comment #16 from Michael Andres
http://bugzilla.opensuse.org/show_bug.cgi?id=899755
Adrien Plazas
http://bugzilla.opensuse.org/show_bug.cgi?id=899755
http://bugzilla.opensuse.org/show_bug.cgi?id=899755#c21
Dominique Leuenberger
Any comment on the patch attached in previous comment?
I did not spot anything in particular wrong... the best way to test this on your machine is to switch to PackageKit-branding-upstream (there the lifetime is not configured to 15s, but infinite). While using zypper and pkcon / gpk-update-viewer / gnome-software interchangably, the information provided has to stay consistent - and as long as none of the tasks is actually doing anything at the moment, must not block the others -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com