Skip to content

Commit

Permalink
Rework
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubhangi-cs committed Jan 29, 2024
1 parent 3f2c1b6 commit 37869a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,9 @@ private void attachFieldWithError(SuccessFactorsServiceException ose, FailureCol
failureCollector.addFailure(errMsg, null).
withConfigProperty(SuccessFactorsConnectorConfig.ASSERTION_TOKEN);
} else {
failureCollector.addFailure(errMsg, null).
withConfigProperty(SuccessFactorsConnectorConfig.PRIVATE_KEY);
failureCollector.addFailure(errMsg, null).
withConfigProperty(SuccessFactorsConnectorConfig.USER_ID);
failureCollector.addFailure(errMsg, null).
withConfigProperty(SuccessFactorsConnectorConfig.TOKEN_URL);
failureCollector.addFailure(errMsg, null).withConfigProperty(SuccessFactorsConnectorConfig.PRIVATE_KEY);
failureCollector.addFailure(errMsg, null).withConfigProperty(SuccessFactorsConnectorConfig.USER_ID);
failureCollector.addFailure(errMsg, null).withConfigProperty(SuccessFactorsConnectorConfig.TOKEN_URL);
}
}
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,8 @@ public SuccessFactorsResponseContainer callSuccessFactorsWithRetry(URL endpoint)
* @throws IOException if all retries fail
*/
public Response retrySapTransportCall(URL endpoint, String mediaType) throws IOException {
AtomicInteger attemptCounter = new AtomicInteger(0);
Callable<Boolean> fetchRecords = () -> {
response = transport(endpoint, mediaType);
LOG.info("Response code in retry: {}", response.code());
if (response != null && response.code() >= HttpURLConnection.HTTP_INTERNAL_ERROR) {
throw new RetryableException();
}
Expand Down

0 comments on commit 37869a0

Please sign in to comment.