Comments (6)
JSR define this workflow! So my question is how can I handle long time partition execution if analyzer work in a unique transaction? I excpected that was the single method in transaction not the loop.
6 begin transaction // thread A
7 // Actions 9-12 run continuously until all partitions end.
8 // when collector payload arrives:
9 <->PartitionAnalyzer.analyzeCollectorData // thread A
10 // when partition ends:
11 <->PartitionAnalyzer.analyzeStatus // thread A
12. // Remaining actions run after all partitions end:
13. // if rollback condition occurs:
14. <->[PartitionReducer.rollbackPartitionedStep] // thread A
15.
16. // else not rollback
17. <->[PartitionReducer.beforePartitionedStepCompletion] // thread A
18. commit transaction // thread A
from jsr352.
will look into it next.
from jsr352.
According to the spec section you quoted above (section 11.7), all the work on the main thread by analyzer and reducer are in one single transaction. So I think you will need to adjust tx timeout to allow for time taken by analyzer and reducer processing, partition scheduling and dispatching and communication overhead. The scope of the partition main thread transaction (single-method vs loop), I will check with spec expert group to see why it is designed this way.
https://java.net/projects/jbatch/lists/public/archive/2014-08/message/1
from jsr352.
See RI Bug https://java.net/bugzilla/show_bug.cgi?id=6356
PartitionAnalyzer transaction boundary on partitioned chunk (and batchlet) step need clarification
from jsr352.
Yes they admit taht spec need a clarification. By now to solve my problem i've made a fix to jberet and I've updated my Wildfly 8.1 server installation.
from jsr352.
Somewhat related issue:
JBERET-117 Arjuna transaction timeout with partitioned step (there is no partition analyzer or collector)
from jsr352.
Related Issues (20)
- NoSuchJobException HOT 8
- Need to update the link to JSR 352 spec project in README.md HOT 1
- If the server is using other timezone the JDBC repository will show wrong time. HOT 7
- According JBeret specification JBeret should be able to @Inject @BatchProperty File file, but it works only in special curcumstance. HOT 2
- Checkpoints must be set after skipped item HOT 5
- JBERET000640 - Wildfly 14 HOT 13
- Does JBeret support Java11? HOT 3
- Usage of JBoss Marshalling incompatible with native compilation with GraalVM HOT 8
- Jberet and Thorntail HOT 2
- Inconsistent BatchStatus after database connection loss HOT 1
- Support additional Serialization mechanisms
- jberet-camel reading only one file HOT 2
- Mongo support for storing batch metadata? HOT 2
- PurgeBatchlet doesn't work with JdbcJobRepository HOT 2
- "JBERET000651: The requested permits (%d) is greater than the maximum number of permits (%d) allowed in the thread pool."; HOT 2
- user guide HOT 2
- Support Java 17 HOT 10
- Injection of batch artifact properties does not work HOT 10
- Job versioning does not appear to be supported in JBeret HOT 1
- Error using Oracle DB as default job repository HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsr352.