Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-3297

Retry logic does not handle the exception from BulkJPAExecutor properly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.1.0
    • Component/s: core
    • Labels:
      None

      Description

      The test testJavaNoRecords revealed an interesting problem - if BulkJPAExecutor does not find a particular bundle job, it throws a JPAExecutorException and the operation is retried even though it the exception should be re-thrown without any retry.

      The problem is that the cause of JPAExecutorException is another JPAExecutorException and the predicate logic inside OperationRetryHandler mishandles this situation.

        Attachments

        1. OOZIE-3297.001.patch
          1 kB
          Andras Piros

          Activity

            People

            • Assignee:
              andras.piros Andras Piros
              Reporter:
              pbacsko Peter Bacsko
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: