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

JBeret batches fail following timed out transactions

XMLWordPrintable

    • Hide

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

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

      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)
      

              cfang@redhat.com Cheng Fang
              rhn-support-sfikes Stephen Fikes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: