You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gobblin.apache.org by "Sudarshan Vasudevan (Jira)" <ji...@apache.org> on 2020/10/13 21:47:00 UTC
[jira] [Updated] (GOBBLIN-1208) Fix - restApiRetryLimit cannot be
set to 0
[ https://issues.apache.org/jira/browse/GOBBLIN-1208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sudarshan Vasudevan updated GOBBLIN-1208:
-----------------------------------------
Fix Version/s: 0.15.0
Affects Version/s: 0.15.0
> Fix - restApiRetryLimit cannot be set to 0
> ------------------------------------------
>
> Key: GOBBLIN-1208
> URL: https://issues.apache.org/jira/browse/GOBBLIN-1208
> Project: Apache Gobblin
> Issue Type: Improvement
> Affects Versions: 0.15.0
> Reporter: Alex Li
> Priority: Major
> Fix For: 0.15.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Fix - restApiRetryLimit cannot be set to 0
> if we set restApiRetryLimit=0, the code should be execute 1 time.
> change code:
> {code:java}
> private JsonArray getRecordsForQuery(SalesforceConnector connector, String query) {
> RestApiProcessingException exception = null;
> for (int i = 0; i < workUnitConf.restApiRetryLimit; i++) {
> {code}
> to
> {code:java}
> private JsonArray getRecordsForQuery(SalesforceConnector connector, String query) {
> RestApiProcessingException exception = null;
> for (int i = 0; i < workUnitConf.restApiRetryLimit+1; i++) {
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)