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.