[ 
http://opencast.jira.com/browse/MH-8273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=28419#comment-28419
 ] 

Adam McKenzie commented on MH-8273:
-----------------------------------

Download distribution service's relevant code is:

      response = getResponse(post);

Which is an extended function of 
org.opencastproject.serviceregistry.api.RemoteBase.java
protected HttpResponse getResponse(HttpRequestBase httpRequest, Integer... 
expectedHttpStatus)

Trying each remote service in turn they try:
response = client.execute(httpRequest);
from org.opencastproject.security.api.TrustedHttpClient (TrustedHttpClientImpl)

Bypassing the Get code in TrustedHttpClientImpl (since we are doing a POST), it 
gets through the digest authentication and then:
    HttpResponse response = null;
    try {
      response = httpClient.execute(httpUriRequest);
      responseMap.put(response, httpClient);
      return response;
    } catch (Exception e) {
      // if we have a response, remove it from the map
      if (response != null) {
        responseMap.remove(response);
      }
      // close the http connection(s)
      httpClient.getConnectionManager().shutdown();
      throw new TrustedHttpClientException(e);
    }

I don't think it would cause too much grief to add a check for the nonce 
timeout here since it is handling the digest authentication at this level. We 
could have it retry the request after receiving this response right away. I 
don't think this would run away as long as we only do this for the nonce 
timeout case. We could add a random delay to not overwhelm an already 
struggling server as well before trying again. 
                
> Processing fails on media package with "Nonce has expired/timed out" for 
> Workflow operation "distribute-download" randomly
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MH-8273
>                 URL: http://opencast.jira.com/browse/MH-8273
>             Project: Matterhorn Project
>          Issue Type: Bug
>          Components: Distribution
>    Affects Versions: 1.2, 1.3
>            Reporter: Adam McKenzie
>            Assignee: Adam McKenzie
>            Priority: Release Blocker
>


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

        
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn


To unsubscribe please email
[email protected]
_______________________________________________

Reply via email to