[ https://issues.apache.org/jira/browse/GOBBLIN-1208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Li updated GOBBLIN-1208: ----------------------------- Description: 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} was: 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} > 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 > Reporter: Alex Li > Priority: Major > > 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)