You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Andras Piros (JIRA)" <ji...@apache.org> on 2018/07/02 09:08:00 UTC

[jira] [Updated] (OOZIE-3297) Retry logic does not handle the exception from BulkJPAExecutor properly

     [ https://issues.apache.org/jira/browse/OOZIE-3297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andras Piros updated OOZIE-3297:
--------------------------------
    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.

  was:
The test {{testJavaNoRecords}} revealed an interesting problem - if {{BulkJPAExecutor}} does not find a particaular 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.


> Retry logic does not handle the exception from BulkJPAExecutor properly
> -----------------------------------------------------------------------
>
>                 Key: OOZIE-3297
>                 URL: https://issues.apache.org/jira/browse/OOZIE-3297
>             Project: Oozie
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 5.0.0
>            Reporter: Peter Bacsko
>            Assignee: Andras Piros
>            Priority: Critical
>             Fix For: 5.1.0
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)