<groupId>org.onap.dcaegen2.services</groupId>
<artifactId>pm-mapper</artifactId>
- <version>1.4.1-SNAPSHOT</version>
+ <version>1.4.2-SNAPSHOT</version>
<parent>
<groupId>org.onap.oparent</groupId>
int attempts = 1;\r
try {\r
while (!status && attempts <= MAX_RETRIES) {\r
+ if(attempts != 1) {\r
+ Thread.sleep(RETRY_INTERVAL);\r
+ }\r
final URL url = new URL(urlString);\r
final HttpURLConnection connection = getHttpURLConnection(method, url, invocationID, requestID);\r
\r
result = getResult(attempts, connection);\r
status = !isWithinErrorRange(connection.getResponseCode());\r
attempts++;\r
- Thread.sleep(RETRY_INTERVAL);\r
}\r
} catch (IOException | NoSuchAlgorithmException ex) {\r
logger.unwrap().warn("Request failure", ex);\r
}\r
return result;\r
}\r
-}
\ No newline at end of file
+}\r