Northbound IT works unreliably 29/2129/3
authorGiovanni Meo <gmeo@cisco.com>
Thu, 24 Oct 2013 09:23:09 +0000 (11:23 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 24 Oct 2013 15:30:32 +0000 (15:30 +0000)
- The root cause of the issue is in the fact the hosttracker
northbound bundles takes long time to reply to a query, why is that is
todo. To avoid this issue however i'm making the timeout for the HTTP
request in the IT to be infinity.

Change-Id: I8b857a24d6ebd03ff27f13c5061106c5202a8c2a
Signed-off-by: Giovanni Meo <gmeo@cisco.com>
opendaylight/northbound/integrationtest/src/test/java/org/opendaylight/controller/northbound/integrationtest/NorthboundIT.java

index 3f3aec0..f671448 100644 (file)
@@ -153,7 +153,11 @@ public class NorthboundIT {
 
             request.setUri(restUrl);
             request.setMethod(method);
-            request.setTimeout(5000);  // HostTracker doesn't respond within 3 seconds
+            request.setTimeout(0);  // HostTracker doesn't respond
+                                    // within default timeout during
+                                    // IT so setting an indefinite
+                                    // timeout till the issue is
+                                    // sorted out
 
             Map<String, List<String>> headers = new HashMap<String, List<String>>();
             String authString = "admin:admin";