Commit Graph

5708 Commits

Author SHA1 Message Date
Taeik Lim
b736cd4e28 Prevent race condition when flow transition is not initialized
Resolves #4092
2023-08-22 16:00:55 -07:00
Stefano Cordio
f42f1ddd5e Fix typo in SimpleMailMessageItemWriter Javadoc 2023-07-18 13:43:04 +02:00
Kim Seon Woo
7f13c5323f Fix javadoc of SimpleStepBuilder
Resolves #4402

Author: Seon Woo Kim <seronwoo960000.kim@gmail.com>
2023-07-17 09:57:43 +02:00
Mahmoud Ben Hassine
9251add879 Refine contribution #4364
Add integration test

Related to #4246
2023-05-16 08:10:29 +02:00
jinwoo-Bae
539ec71ed7 Fix retrieval of job parameters in SimpleJobExplorer#getJobExecutions
Before this commit, SimpleJobExplorer#getJobExecutions returned
job executions with wrong job parameters, ie a job execution could
have the parameter of another execution.

This commit fixes the implementation so that each returned job
execution has its own parameters.

Resolves #4246
2023-05-16 08:01:09 +02:00
Mahmoud Ben Hassine
9874a6502c Allow StaxEventItemReader to auto-detect the input file encoding
Before this commit, it was not possible to pass a null encoding
to the StaxEventItemReader, which prevents the XML event reader
to auto-detect the file encoding.

This commits makes the encoding setter more lenient by accepting
a null value.

Resolves #4101
2023-04-27 22:06:14 +02:00
Mahmoud Ben Hassine
81e619b433 Improve performance of JdbcJobInstanceDao#getLastJobInstance
Credit to @chenglongyan for the fix

Backport of 30ce3326d1

Issue #4024
2023-03-29 12:06:47 +02:00
Spring Builds
43c0b77b7e [artifactory-release] Next development version 2023-02-22 12:11:43 +00:00
Spring Builds
e71336a5e7 [artifactory-release] Release version 4.3.8 2023-02-22 12:11:41 +00:00
Mahmoud Ben Hassine
39ebffea8e Prepare release 4.3.8 2023-02-22 11:53:06 +01:00
Henning Poettker
c68da18d3e Improve step execution polling and retrieval
Resolves #3790
2023-02-22 09:45:50 +01:00
drow724
708f1c8216 Add default component name in constructor of AvroItemReader
Issue #4285
2023-02-21 18:31:09 +01:00
Stephan Freund
bd43ca1007 Fix TARGET_NAME_PREFIX in StepScope
Resolves #3936
2023-02-21 11:48:56 +01:00
Mahmoud Ben Hassine
c7b5b01a41 Fix inconsistent state validation rules in RepositoryItemReader
Before this commit, state validation rules in RepositoryItemReader
were not consistent with those applied in its builder.

This commit makes validation rules consistent between the two ways
of creating a RepositoryItemReader. This commit also adds a getter
for the component name in ExecutionContextUserSupport to be able to
assert on it where appropriate down the hierarchy.

Resolves #4276
2023-02-18 05:26:43 +01:00
Henning Poettker
669768365f Prefer Slice over Page in RepositoryItemReader
Resolves #4115
2023-02-17 17:34:03 +01:00
Philippe Marschall
900b36f604 Use ExecutionContext map constructor
Use ExecutionContext map constructor to simplify
ExecutionContextRowMapper.mapRow.

Issue #3985
2023-02-13 16:51:55 +01:00
Philippe Marschall
097891fbfb Optimize ExitStatus#addExitDescription
Optimize ExitStatus#addExitDescription by reducing string allocations
through:

- avoid string allocation when the current description is empty
- avoid string allocation when the given description is empty
- avoid intermediate string allocation by allocating the correct buffer size

Issue #3979
2023-02-13 14:42:49 +01:00
Philippe Marschall
bcc68f1930 Check the return value of File.delete()
Check the return value of File.delete() and
throw an exception if deleting a file fails.

Issue #4203
2023-02-13 14:17:20 +01:00
xiang66.li
061608f0bb Fix incorrect reference to AbstractJobTests in testing.adoc
Resolves #4182
2023-02-09 19:18:56 +01:00
Mahmoud Ben Hassine
f9db019387 Upgrade Spring dependencies to latest snapshots
Some dependencies are out of OSS support at the
time of this change. Those dependencies were
upgraded to the next supported minor version
instead of the next patch version.
2023-01-17 12:47:40 +01:00
Marvin Deng
8a77ca3be3 Upgrade job execution status from STOPPING to STOPPED if it has already ended
Resolves #4064
2022-11-18 16:48:00 +01:00
Mahmoud Ben Hassine
84b1e1f702 Fix code sample in documentation
Backport of c2e8ef0845
2022-10-04 23:13:57 +02:00
Mahmoud Ben Hassine
54904c0635 Update Spring dependencies to latest snapshots 2022-09-22 10:08:31 +02:00
Spring Builds
9b8ad71333 [artifactory-release] Next development version 2022-09-22 06:39:55 +00:00
Spring Builds
7876460c52 [artifactory-release] Release version 4.3.7 2022-09-22 06:39:52 +00:00
Mahmoud Ben Hassine
2c0ae70807 Update dependencies 2022-09-22 07:36:40 +02:00
Mahmoud Ben Hassine
dca9b77d11 Fix incorrect reference to SimpleJdbcTemplate in reference documentation
Resolves #4197
2022-09-22 07:18:40 +02:00
Mahmoud Ben Hassine
499ec2b0ad Improve the documentation of scoped beans definition
Resolves #1502
2022-09-22 06:58:59 +02:00
Henning Poettker
7b0e00e8a5 Declare dependency on jettison as optional 2022-09-22 05:24:31 +02:00
Henning Poettker
6b51408769 Fix non-nullable columns in MySQL migration for Spring Batch 4.3
Issue #4145
2022-08-24 15:59:46 +02:00
Taeik Lim
f6fc7c7825 Add missing initialized flag set to FlowJob
Issue #4142
2022-07-20 18:53:11 +02:00
Marvin Deng
1e24e38db7 Remove DataAccessResourceFailureException in xml related classes
Resolves #4132
2022-07-18 18:55:07 +02:00
Mahmoud Ben Hassine
0d7a16054c Fix annotation based listener registration in FaultTolerantStepBuilder
Resolves #4137
2022-06-22 11:42:31 +02:00
Mahmoud Ben Hassine
be4c22f2ce Update Spring dependencies to latest snapshots 2022-05-18 15:15:24 +02:00
Spring Builds
7dc04702d0 [artifactory-release] Next development version 2022-05-18 12:57:33 +00:00
Spring Builds
359e7b244a [artifactory-release] Release version 4.3.6 2022-05-18 12:57:30 +00:00
Mahmoud Ben Hassine
8866b03da4 Prepare release 4.3.6 2022-05-18 14:32:54 +02:00
Taeik Lim
976d7916ad Add @Nullable where appropriate in JobExecution and StepExecution
Issue #4077
2022-05-18 11:45:19 +02:00
Mahmoud Ben Hassine
c2a502830d Add javax.xml.namespace.QName to trusted classes in Jackson serializer
This class is safe to deserialize according to Jackson:
https://github.com/FasterXML/jackson-databind/blob/master/src/main/java/com/fasterxml/jackson/databind/jsontype/impl/SubTypeValidator.java

This also has been checked against Jackson 2.11 to confirm
the backport of this enhancement to 4.3.x.

Resolves #4044
2022-05-17 15:36:10 +02:00
Mahmoud Ben Hassine
1199740407 Add java.util.UUID to trusted classes in Jackson serializer
This class is safe to deserialize according to Jackson:
https://github.com/FasterXML/jackson-databind/blob/master/src/main/java/com/fasterxml/jackson/databind/jsontype/impl/SubTypeValidator.java

This also has been checked against Jackson 2.11 to confirm
the backport of this enhancement to 4.3.x.

Resolves #4110
2022-05-17 11:34:00 +02:00
Mahmoud Ben Hassine
6c09e95987 Update Spring dependencies to latest snapshots 2022-05-17 06:26:58 +02:00
Mahmoud Ben Hassine
8686671615 Fix documentation WRT restarting an abruptly stopped job
Resolves #4037
2022-05-05 18:07:38 +02:00
Mahmoud Ben Hassine
6752c97c0e Fix NPE in MongoItemReader when sorting is not specified through the builder
Resolves #4082
2022-05-05 16:00:44 +02:00
Mahmoud Ben Hassine
11b62f4534 Fix datasource initialization in MySQLJdbcJobRepositoryTests 2022-04-29 08:35:14 +02:00
linhongcheng
fdd253a7e6 Fix retrieval of null job parameters of type long/double
Before this commit, a null job parameter of type long
or double was retrieved as 0L or 0.0. This caused
JobOperator.restart to create a new job instance
instead of restarting the previous failed execution.

This commit fixes how null job parameters of type
long or double are retrieved from the database to
correctly restart the same job instance.

Issue #4087
2022-04-28 18:04:06 +02:00
Starchenko Ilya
2bdf4283e0 Fix Javadoc of SpringBatchTest annotation
fix double @-symbol in javadoc

Issue #4102
2022-04-27 15:29:53 +02:00
Mahmoud Ben Hassine
758372b025 Make BATCH_JOB_EXECUTION#JOB_CONFIGURATION_LOCATION nullable by default for DB2
This commit adds DEFAULT to BATCH_JOB_EXECUTION#JOB_CONFIGURATION_LOCATION
for DB2. This fixes a SqlSyntaxErrorException with DB2 v9.

Credits to @omheni for the fix, see #4002.

Resolves #4001
2022-04-14 16:35:59 +02:00
Mahmoud Ben Hassine
5288e915ed Update Spring dependencies to latest snapshots 2022-04-04 14:41:08 +02:00
Xavi Lee
731c270b45 Update copyright date 2022-04-01 16:24:17 +02:00
Mahmoud Ben Hassine
b2b5b48e77 Fix XStreamUnmarshallingTests
This commit adds an explicit type permission to unmarshall
the `Trade` class.
2022-03-16 17:55:33 +01:00