Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For a batch job with partitioned step, the PartitionReducer's afterPartitionedStepCompletion gets ROLLBACK on normal completion. #9708

Closed
scottkurz opened this issue Nov 7, 2019 · 0 comments · Fixed by #9655
Assignees
Labels
release bug This bug is present in a released version of Open Liberty release:20001 team:Batch Java Batch (JSR352) batch features

Comments

@scottkurz
Copy link
Member

Describe the bug

For a batch job with a partitioned step, with a PartitionReducer configured, during normal completion the reducer's afterPartitionedStepCompletion gets passed a PartitionStatus.ROLLBACK value even when a step completes normally.

Steps to Reproduce
Define a partitioned step with a reducer configured, like:

<step id="step1">
	<chunk/>
	<partition>
		<plan partitions="3"/>
		<reducer ref="MyReducer">

and observe the value passed to MyReducer's afterPartitionedStepCompletion(PartitionStatus status) method upon normal completion.

Expected behavior

For a successful execution, the status passed to the reducer in afterPartitionedStepCompletion would be COMMIT, and for a failing execution it would be ROLLBACK

Diagnostic information:

  • OpenLiberty Version: Any in the past few years.
  • server.xml configuration: batch-1.0 and/or batchManagement-1.0 features
@scottkurz scottkurz added the bug This bug is not present in a released version of Open Liberty label Nov 7, 2019
@scottkurz scottkurz self-assigned this Nov 7, 2019
@scottkurz scottkurz added team:Batch Java Batch (JSR352) batch features release bug This bug is present in a released version of Open Liberty and removed bug This bug is not present in a released version of Open Liberty labels Nov 7, 2019
scottkurz added a commit to scottkurz/open-liberty that referenced this issue Nov 7, 2019
Signed-off-by: Scott Kurz <skurz@us.ibm.com>
scottkurz added a commit to scottkurz/open-liberty that referenced this issue Nov 7, 2019
Signed-off-by: Scott Kurz <skurz@us.ibm.com>
scottkurz added a commit that referenced this issue Dec 3, 2019
Batch collector properties, zero-partition partitioned step, status passed to reducer - fixes #9645, #9707, #9708
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release bug This bug is present in a released version of Open Liberty release:20001 team:Batch Java Batch (JSR352) batch features
Projects
None yet
2 participants