Bug 1160870

Summary: RFE: create sqlite in temp location and move to repodata after generation
Product: [Fedora] Fedora Reporter: Dennis Gregorovic <dgregor>
Component: createrepo_cAssignee: Tomas Mlcoch <tmlcoch>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dmach, jzeleny, tmlcoch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-06 13:52:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dennis Gregorovic 2014-11-05 20:47:19 UTC
sqlite on NFS volumes can be very problematic (i.e. operations that normally take seconds can take hours).  When createrepo_c generates sqlite metadata, please use a temp directory on local disk and then move the end result to the repodata directory.  This would save from having to use --output-dir as a workaround.

Comment 1 Tomas Mlcoch 2014-11-06 13:52:14 UTC
Good point! I've just added new option --local-sqlite [1].
This option is available since version 1.7.2 which was just built in rawhide [2].

[1] https://github.com/Tojaj/createrepo_c/commit/5130231cea086c986593f572b94f88b35c4ce607
[2] http://koji.fedoraproject.org/koji/taskinfo?taskID=8054826