[ 
https://issues.apache.org/jira/browse/NUTCH-569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lewis John McGibbney updated NUTCH-569:
---------------------------------------

    Fix Version/s: 1.7
    
> Protocol plugins should report progress to the fetcher
> ------------------------------------------------------
>
>                 Key: NUTCH-569
>                 URL: https://issues.apache.org/jira/browse/NUTCH-569
>             Project: Nutch
>          Issue Type: Improvement
>          Components: fetcher
>    Affects Versions: 1.0.0
>            Reporter: Andrzej Bialecki 
>            Priority: Minor
>             Fix For: 1.7
>
>
> When downloading very large files over slow connections, protocol plugins 
> spend long time in Protocol.getProtocolOutput(...). This sometimes leads to a 
> timeout in Fetcher / Fetcher2, with the message "aborting with hung threads". 
> Protocol plugins should periodically notify their caller about progress. In a 
> situation when the call to getProtocolOutput takes very long time to return, 
> this will help the caller to determine whether the wait is justified.
> Preferably, the callback interface should allow the monitoring of not only 
> the binary progress / no-progress, but also the download speed, so that the 
> caller could terminate slow connections. E.g.
> {noformat}
> interface ProtocolReporter {
>   void progress(long bytesDownloaded);
> }
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to