Uploaded image for project: 'aaa'
  1. aaa
  2. AAA-2

Concurrent REST calls failing

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • None
    • None
    • General
    • None
    • Operating System: Windows
      Platform: PC

    • 1464

    Description

      In Opendaylight Hydrogen Release, basic edition and SP edition, tried to send 10 REST calls in parallel for fetching node properties. All the requests are configured to send HTTPBasicAuthentication with appropriate user name and password (admin/admin). The requests are failing randomly with following response for the failed requests

      <html><head><title>Apache Tomcat/7.0.32 - Error report</title><style><!--H1

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}

      H2

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}

      H3

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}

      BODY

      {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}

      B

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}

      P

      {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}

      A

      {color : black;}

      A.name

      {color : black;}

      HR

      {color : #525D76;}

      --></style> </head><body><h1>HTTP Status 401 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>This request requires HTTP authentication.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.32</h3></body></html>

      Following are the tomcat_server.xml configuration we are using

      <Server>
      <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
      <Listener className="org.apache.catalina.core.JasperListener" />
      <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
      <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
      <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />

      <Service name="Catalina">
      <Connector port="8080" protocol="HTTP/1.1"
      connectionTimeout="20000"
      redirectPort="8443" />

      <Engine name="Catalina" defaultHost="localhost">
      <Host name="localhost" appBase=""
      unpackWARs="false" autoDeploy="false"
      deployOnStartup="false" createDirs="false">
      <Realm className="org.opendaylight.controller.security.ControllerCustomRealm" />
      <Valve className="org.apache.catalina.authenticator.SingleSignOn" cookieDomain="10.200.8.14"/>

      <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
      prefix="web_access_log_" suffix=".txt" resolveHosts="false"
      rotatable="true" fileDateFormat="yyyy-MM"
      pattern="%

      {yyyy-MM-dd HH:mm:ss.SSS z}

      t - [%a] - %r"/>
      </Host>
      </Engine>
      </Service>
      </Server>

      As suggested here we also tried reusing the cookie that is passed in response to the first request. But it does not seem to work.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            vaddireddy@deepa.wipro.com Deepa v
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: