Bug 446617 - pkgupload times out when large rpms have already been rejected by the server due to header content
Summary: pkgupload times out when large rpms have already been rejected by the server ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Network
Classification: Retired
Component: RHN/Backend
Version: RHN Stable
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Bryan Kearney
QA Contact: Amy Owens
URL:
Whiteboard:
Depends On:
Blocks: 210122 446437
TreeView+ depends on / blocked
 
Reported: 2008-05-15 12:12 UTC by James Bowes
Modified: 2013-01-10 09:58 UTC (History)
2 users (show)

Fixed In Version: 5.0.6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-06-26 20:20:58 UTC
Embargoed:


Attachments (Terms of Use)

Description James Bowes 2008-05-15 12:12:25 UTC
For a large package that already exists on the server, RHN will reply saying
that the package already exists, but the client will continue to push the
package up. If the upload finishes before the server closes the connection, then
the client can read the return code. If not, then the client will get a pipe
error or peer closed the connection error. The fix for this is to not do any
processing on the package until it is fully uploaded, so we don't return a
result until the client is ready.

Comment 1 James Bowes 2008-05-15 12:24:21 UTC
Testing this is pretty easy:
 * Find a really big rpm that isn't already in RHN (openoffice.org-base from
rawhide is a good choice)
  * run rhn-pkgupload to upload this package to rhn
    This should work
  * now, run it again
    the rpm should transfer, then you should see a message saying the package   
    already exists.
    before, the transfer would timeout midway, and you'd get a traceback.

Comment 2 Amy Owens 2008-05-19 14:41:25 UTC
jbowes-- I get a package to upload-- it returns with Ok but when I upload it
again the log says it finds it already exists but then just hangs

Comment 3 Amy Owens 2008-05-20 15:37:26 UTC
working now... rhn-pkgupload http://scripts.back-webdev.redhat.com/PKG-UPLOAD
/home/aowens/openoffice.org-core-2.4.0-12.8.fc9.i386.rpm
751f60ed0c21ee50527e64bc02fbd7a8: openoffice.org-core-2.4.0-12.8.fc9.i386.rpm
already uploaded


Comment 4 Grant Gainey 2008-06-13 18:32:23 UTC
verified


Note You need to log in before you can comment on or make changes to this bug.