Uploaded image for project: 'Apache Gobblin'
  1. Apache Gobblin
  2. GOBBLIN-1101

Enhance bulk api retry for ExceedQuota

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.15.0
    • None
    • None

    Description

      1. ExceedQuota exception

      Below is SFDC doc about ExceedQuota

      One of the limits customers frequently reach is the concurrent request limit. Once a synchronous Apex request runs longer than 5 seconds, it begins counting against this limit. Each organization is allowed 10 concurrent long-running requests. If the limit is reached, any new synchronous Apex request results in a runtime exception. This behavior occurs until the organization’s requests are below the limit.
      

      If the ExceedQuota exception happens, we should let the thread sleep 5 minutes and try again. There should not be a retryLimit for this exception.

      2. Except stack in log file

      For example we set up retryLimit to 10, we retried 10 times,  and failed; we need to print out exception stack in log file, there are 10 of them in the exception stack.

      SSL Exception(root cause) ----retry and get ----> ExceedQuota ----retry and get ---->  ExceedQuota ----....a lot........ ----> 

      We'd better skip all the retry exception, only keep the root cause exception.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              arekusuri Alex Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4.5h
                  4.5h