Bug 1195653

Summary: operations involving repository modification are very slow
Product: [openSUSE] openSUSE Distribution Reporter: Giacomo Comes <comes>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Leap 15.4   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Giacomo Comes 2022-02-08 03:19:04 UTC
every zypper command involving the modification of the repository list takes very long time (minutes) to complete.
Example:
  zypper mr -d <repo number>
  zypper mr -e <repo number>
  zypper ar <URL> <name>
they all take about 3m40s to complete (on a fast machine).

using top and ps I can see that the command zypper spawn
  /usr/lib/zypp/plugins/appdata/InstallAppdata <options>
which in turn spawn
  /usr/bin/appstreamcli refresh-cache
it is this last command who takes very long time to complete. Like if it is rebuilding every time the cache from scratch?
appstreamcli version is AppStream-0.14.6-150400.1.1

For reference the same commands take 0.1s on 15.3 (AppStream-0.12.6-bp153.2.2.1) and 5s on tumbleweed (AppStream-0.15.1-1.2)

I hope to get back the same speed of Leap 15.3 not only on Leap 15.4 but on tumbleweed as well.
Comment 1 Michael Andres 2022-02-08 09:49:24 UTC
Fixed with libzypp-17.29.4.
Due to a bug Zypp accidentally waits for the plugin to complete. Usually zypper exits after having launched the apdata plugin.

*** This bug has been marked as a duplicate of bug 1195326 ***