Bug 749902

Summary: Grinder Lockfile not cleaned up from a canceled sync
Product: [Retired] Pulp Reporter: John Matthews <jmatthew>
Component: user-experienceAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: pkilambi
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: 2012-02-24 20:11:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description John Matthews 2011-10-28 20:07:48 UTC
Description of problem:

If you cancel a sync, the files currently be downloaded while cancelled will not be re-downloaded.

Subsequent invocations of sync result in grinder skipping the actual download.


To reproduce:
1) Sync a repo
2) While downloading, issue a cancel_sync
3) Attempt to resync
 Notice how quick it completes and the files interrupted are not actually downloaded.

Example is what I see:
# ls /var/lib/pulp/packages/pulp-large_10mb_test-package/0.1.1/1.fc15/noarch/d2b/pulp-large_10mb_test-package-0.1.1-1.fc15.noarch.rpm.*
/var/lib/pulp/packages/pulp-large_10mb_test-package/0.1.1/1.fc15/noarch/d2b/pulp-large_10mb_test-package-0.1.1-1.fc15.noarch.rpm.lock
/var/lib/pulp/packages/pulp-large_10mb_test-package/0.1.1/1.fc15/noarch/d2b/pulp-large_10mb_test-package-0.1.1-1.fc15.noarch.rpm.part


I've seen this for rpm syncs and file syncs.

Comment 1 Pradeep Kilambi 2011-10-31 15:09:29 UTC
fixed! commit da4ea6bb58d72c1a7509ad946e9371482395a620

Comment 2 Jay Dobies 2011-11-09 20:32:12 UTC
Fixed in build 0.247.

Comment 3 Preethi Thomas 2011-12-08 20:07:35 UTC
verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.254-2.fc15.noarch

Comment 4 Preethi Thomas 2012-02-24 20:11:14 UTC
Pulp v1.0 is released
Closed Current Release.