jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Archiva
  • MRM-684

Clients timeout due to Archiva blocking when downloading large files

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Reopened Reopened
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.0, 1.0.1
  • Fix Version/s: Backlog
  • Component/s: WebDAV Interface
  • Labels:
    None

Description

Clients connecting to Archiva may time out when Archiva is proxying large files from an up stream remote repository.

Internally, Archiva uses Wagon and Plexus webdav which can only reference resources as JAVA File objects. Thus, Archiva must wait until Wagon has finished downloading from the remote repository before it can return the valid File object to the Plexus Webdav Servlet.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    wagon-streaming.patch
    14/Feb/08 9:28 PM
    53 kB
    jameswdumay

Issue Links

depends upon

New Feature - A new feature of the product, which has yet to be developed. WAGON-101 Allow use of streams for get, getIfNewer and put

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Improvement - An improvement or enhancement to an existing feature or task. MRM-781 Removal of Archiva-Webdav implementation in favor of Jackrabbit-webdav

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
relates to

Task - A task that needs to be done. MRM-1347 Migrate repository proxy to the new repository API

  • Major - Major loss of function.
  • Open - The issue is open and ready for the assignee to start work on it.
supercedes

New Feature - A new feature of the product, which has yet to be developed. MRM-643 archiva should start to offer the file being proxied to the client while it concurrently downloads it

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
jameswdumay added a comment - 14/Feb/08 9:28 PM

Brett, could you please look at this patch and see if its going down the right track?

Show
jameswdumay added a comment - 14/Feb/08 9:28 PM Brett, could you please look at this patch and see if its going down the right track?
Hide
Permalink
Brett Porter added a comment - 15/Feb/08 1:48 AM

yep, looks ok - I realise there's some missing bits and I'd prefer a RuntimeException (say, UnsupportedOperationException) for the wagon's that don't support features instead of TransferFailedException, but otherwise I think it's ok.

Show
Brett Porter added a comment - 15/Feb/08 1:48 AM yep, looks ok - I realise there's some missing bits and I'd prefer a RuntimeException (say, UnsupportedOperationException) for the wagon's that don't support features instead of TransferFailedException, but otherwise I think it's ok.
Hide
Permalink
jameswdumay added a comment - 16/Feb/08 8:25 PM

I've changed this so it throws a StreamingNotSupportedException which is a little clearer.

Show
jameswdumay added a comment - 16/Feb/08 8:25 PM I've changed this so it throws a StreamingNotSupportedException which is a little clearer.
Hide
Permalink
James William Dumay added a comment - 08/May/08 2:01 AM

Move to 1.1.x

Show
James William Dumay added a comment - 08/May/08 2:01 AM Move to 1.1.x
Hide
Permalink
Olivier Lamy added a comment - 27/Oct/11 5:05 PM

fixed with wagon 2.0 integrated

Show
Olivier Lamy added a comment - 27/Oct/11 5:05 PM fixed with wagon 2.0 integrated
Hide
Permalink
Brett Porter added a comment - 05/Jan/12 5:13 AM

I think you meant something different - archiva will still block when it has to proxy a large artifact from a remote source.

It would be better to send the HEAD response, and stream some content as soon as possible. The only catch is deciding what to do with the connection if a remote checksum failure occurs after already starting to stream the content.

Show
Brett Porter added a comment - 05/Jan/12 5:13 AM I think you meant something different - archiva will still block when it has to proxy a large artifact from a remote source. It would be better to send the HEAD response, and stream some content as soon as possible. The only catch is deciding what to do with the connection if a remote checksum failure occurs after already starting to stream the content.

People

  • Assignee:
    Brett Porter
    Reporter:
    James William Dumay
Vote (0)
Watch (0)

Dates

  • Created:
    06/Feb/08 8:30 PM
    Updated:
    05/Jan/12 5:14 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.