Project

Profile

Help

Refactor #7505

closed

Drop --local-sqlite for createrepo_c to avoid thrashing /tmp

Added by mhaluza about 4 years ago. Updated about 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
2.21.4
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:

Description

Commit ca24ae2 referenced via https://pulp.plan.io/issues/1157 as internal need for the former RCM team introduced --local-sqlite parameter for createrepo_c to speed up publish process in a scenario where pulp filesystems were located on NFS. This need is no longer valid.

Currently, the --local-sqlite causes createrepo_c to write to TMPDIR instead of its usual output directory, which causes huge sqlite files to be left under /tmp after cancelled or failed Pulp tasks. /tmp is oftentimes fairly small and this may cause the filesystem to fill up quickly. Pulp already has the concept of creating a temporary working directory for each task under /var/lib/pulp/working and cleaning it up at the end. Usage of this working directory should be preferred.

Suggested change: https://github.com/pulp/pulp_rpm/pull/1833

Added by mhaluza about 4 years ago

Revision fa4413bd | View on GitHub

Drop --local-sqlite for createrepo_c to avoid thrashing /tmp

This PR reverts commit ca24ae299 which has been introduced in https://pulp.plan.io/issues/1157 as internal (and no longer valid) need for the former RCM team. Currently, the --local-sqlite causes createrepo_c to write to TMPDIR instead of its usual output directory, which causes huge sqlite files to be left under /tmp after cancelled or failed Pulp tasks. /tmp is oftentimes fairly small and this may cause the filesystem to fill up quickly. Pulp already has the concept of creating a temporary working directory for each task under /var/lib/pulp/working and cleaning it up at the end.

closes #7505 https://pulp.plan.io/issues/7505

Actions #1

Updated by ipanova@redhat.com about 4 years ago

  • Status changed from NEW to POST
Actions #2

Updated by mhaluza about 4 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #3

Updated by ggainey about 4 years ago

  • Platform Release set to 2.21.4

Added by mhaluza about 4 years ago

Revision 8cd3eba2 | View on GitHub

Drop --local-sqlite for createrepo_c to avoid thrashing /tmp

This PR reverts commit ca24ae299 which has been introduced in https://pulp.plan.io/issues/1157 as internal (and no longer valid) need for the former RCM team. Currently, the --local-sqlite causes createrepo_c to write to TMPDIR instead of its usual output directory, which causes huge sqlite files to be left under /tmp after cancelled or failed Pulp tasks. /tmp is oftentimes fairly small and this may cause the filesystem to fill up quickly. Pulp already has the concept of creating a temporary working directory for each task under /var/lib/pulp/working and cleaning it up at the end.

closes #7505 https://pulp.plan.io/issues/7505

(cherry picked from commit fa4413bd13b60587c173f36573899bcc653ab8c8)

Actions #4

Updated by ggainey about 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF