Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-459

JBeret batches fail following timed out transactions

    Details

    • Steps to Reproduce:
      Hide

      Set a short transaction timeout, sleep during the first chunk.

      Show
      Set a short transaction timeout, sleep during the first chunk.

      Description

      Following a transaction timeout, chunks fail when running in JBoss EAP / Wildfly with

      JBERET000007: Failed to run job ..., org.jberet.job.model.Chunk...: javax.transaction.NotSupportedException: WFTXN0001: A transaction is already in progress
              at org.wildfly.transaction.client.ContextTransactionManager.begin(ContextTransactionManager.java:60) [wildfly-transaction-client-1.0.4.Final-redhat-1.jar:1.0.4.Final-redhat-1]
              at org.wildfly.transaction.client.ContextTransactionManager.begin(ContextTransactionManager.java:54) [wildfly-transaction-client-1.0.4.Final-redhat-1.jar:1.0.4.Final-redhat-1]
              at org.jberet.runtime.runner.ChunkRunner.readProcessWriteItems(ChunkRunner.java:318) [jberet-core-1.2.6.Final-redhat-1.jar:1.2.6.Final-redhat-1]
              at org.jberet.runtime.runner.ChunkRunner.run(ChunkRunner.java:202) [jberet-core-1.2.6.Final-redhat-1.jar:1.2.6.Final-redhat-1]
              at org.jberet.runtime.runner.StepExecutionRunner.runBatchletOrChunk(StepExecutionRunner.java:226) [jberet-core-1.2.6.Final-redhat-1.jar:1.2.6.Final-redhat-1]
              at org.jberet.runtime.runner.StepExecutionRunner.run(StepExecutionRunner.java:147) [jberet-core-1.2.6.Final-redhat-1.jar:1.2.6.Final-redhat-1]
              at org.jberet.runtime.runner.CompositeExecutionRunner.runStep(CompositeExecutionRunner.java:164) [jberet-core-1.2.6.Final-redhat-1.jar:1.2.6.Final-redhat-1]
              at org.jberet.runtime.runner.CompositeExecutionRunner.runFromHeadOrRestartPoint(CompositeExecutionRunner.java:88) [jberet-core-1.2.6.Final-redhat-1.jar:1.2.6.Final-redhat-1]
              at org.jberet.runtime.runner.JobExecutionRunner.run(JobExecutionRunner.java:60) [jberet-core-1.2.6.Final-redhat-1.jar:1.2.6.Final-redhat-1]
              at org.wildfly.extension.batch.jberet.deployment.BatchEnvironmentService$WildFlyBatchEnvironment$1.run(BatchEnvironmentService.java:184)
              at org.wildfly.extension.requestcontroller.RequestController$QueuedTask$1.run(RequestController.java:497)
              at org.jberet.spi.JobExecutor$3.run(JobExecutor.java:161) [jberet-core-1.2.6.Final-redhat-1.jar:1.2.6.Final-redhat-1]
              at org.jberet.spi.JobExecutor$1.run(JobExecutor.java:99) [jberet-core-1.2.6.Final-redhat-1.jar:1.2.6.Final-redhat-1]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [rt.jar:1.8.0_181]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [rt.jar:1.8.0_181]
              at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_181]
              at org.jboss.threads.JBossThread.run(JBossThread.java:320)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  cfang Cheng Fang
                  Reporter:
                  stephen.fikes Stephen Fikes
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: