Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 547720 - app-portage/layman: race condition when multiple instances use API
Summary: app-portage/layman: race condition when multiple instances use API
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Layman Overlay Manager project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-25 16:13 UTC by Michał Górny
Modified: 2016-05-10 04:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-04-25 16:13:53 UTC
Long story short, if multiple processes attempt to use layman's API simultaneously, e.g. by adding (different) repositories this results in awful race conditions. This goes as far as writing corrupt XML in installed.xml...
Comment 1 Devan Franchini (RETIRED) gentoo-dev 2015-09-29 00:39:00 UTC
I've added multiple database back-ends to layman in an attempt to fix this issue. One of which includes SQLite which should handle all parallelization or multiple API invocations. I've tested it myself but I've been getting bogged down with school work so my time is scarce.

Testing would be appreciated and if you have any questions or issues with my solution feel free to let me know in one way or another. Either through this bug report or IRC would be the best way I'd notice it sooner. :)
Comment 2 Devan Franchini (RETIRED) gentoo-dev 2016-05-10 04:44:50 UTC
2.4.1 is out which includes the functionality for various database back-ends for layman, including sqlite. Sqlite will handle the parallelization issues encountered previously. Resolving this issue under those grounds.