Commit Graph

2138 Commits

Author SHA1 Message Date
Mahmoud Ben Hassine
6d3e48a0bc Simplify assertions in tests 2023-06-05 13:08:15 +02:00
Mahmoud Ben Hassine
c25cd55901 Upgrade spring-javaformat maven plugin to version 0.0.39 2023-06-05 11:11:48 +02:00
Mahmoud Ben Hassine
bb5598e569 Remove unused method parameters in BatchRegistrar 2023-06-05 11:07:47 +02:00
Mahmoud Ben Hassine
7f304a1a79 Refine contribution #4364
Add integration test

Related to #4246
2023-05-16 07:01:47 +02:00
jinwoo-Bae
e329b61d18 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 06:57:47 +02:00
Mahmoud Ben Hassine
4a4c822274 Temporarily disable testWriteRetryOnTwoExceptions
Issue #4370
2023-05-11 13:52:57 +02:00
Sukanth Gunda
ef5ef1e6c6 Disable Docker-based tests when Docker is not available
Resolves #4360
2023-05-08 22:32:44 +02:00
Mahmoud Ben Hassine
a33f0e9a32 Fix migration script for SQLServer
Issue #4349
2023-05-08 12:04:39 +02:00
Henning Poettker
4faa842bb1 Upgrade to Mockito 5
Issue #4366
2023-05-04 00:09:11 +02:00
Minsoo Kim
4a971a0764 Enhance switch statements
Issue #4365
2023-05-03 23:59:16 +02:00
Mahmoud Ben Hassine
972951a40a Remove unused imports and apply imports code style 2023-04-11 16:28:36 +02:00
Henning Poettker
e61065ab00 Reduce use of deprecated APIs 2023-03-29 15:34:48 +02:00
Mahmoud Ben Hassine
30ce3326d1 Improve performance of JdbcJobInstanceDao#getLastJobInstance
Credit to @chenglongyan for the fix

Resolves #4024
2023-03-29 11:37:06 +02:00
Mahmoud Ben Hassine
dbdbf787e6 Update Javadocs 2023-03-21 17:51:53 +01:00
Glenn Renfro
386277ddc7 Fix tiny misspelling in the sybase integration test comments 2023-03-21 16:18:21 +01:00
Tatiana Slednikova
145c31b86f Change JobParameters to HashMap
Resolves #4179
2023-03-21 15:01:06 +01:00
Mahmoud Ben Hassine
4513d78ba5 Use text blocks for SQL queries
This commit replaces String concatenation with
text blocks for SQL queries in various DAOs.
This improves the readability of the code.

NB: Not all SQL queries in the code base were
changed to use text blocks, but only those where
readability became an issue.
2023-03-03 06:31:25 +01:00
Henning Poettker
93800c6bae Improve step execution polling and retrieval
Resolves #3790

---
Ported from c68da18 without the JSR related bits
2023-02-22 10:10:11 +01:00
Philippe Marschall
c707284f80 Use batch inserts for job parameters
Use batch inserts for job parameters to reduce
the number of database round trips.

Issue #3867
2023-02-21 20:00:49 +01:00
jinwoo-Bae
2cc0be4a0c Replace usage of deprecated jobOperator#start method with newer version
Related to #4303
2023-02-21 15:52:25 +01:00
Min-soo
b76993ca3d Fix version in Javadoc's since tag of DefaultBatchConfiguration
Issue #4312
2023-02-21 15:33:44 +01:00
Stephan Freund
5fae33185f Fix TARGET_NAME_PREFIX in StepScope
Resolves #3936
2023-02-21 10:47:29 +01:00
Mahmoud Ben Hassine
40109584bf Add missing AOT hints for Spring Batch integration module
Resolves #4307
2023-02-20 11:10:03 +01:00
Mahmoud Ben Hassine
0103ef025d Fix object graph deletion in SimpleJobRepository#deleteJobInstance
Before this commit, SimpleJobRepository#deleteJobInstance
was only deleting the given job instance and not the entire
object graph, which leads to data inconsistency (orphan job
executions and invalid foreign keys).

This commit fixes the contract and the implementation of the method
to delete the entire object graph.

Resolves #4250
2023-02-20 09:57:08 +01:00
Mahmoud Ben Hassine
4629294b65 Fix object graph deletion in SimpleJobRepository#deleteJobExecution
Before this commit, SimpleJobRepository#deleteJobExecution
did not delete associated step executions as specified in the
contract of the method.

This commit fixes the implementation to delete the entire
object graph as specified.

Resolves #4249
2023-02-20 08:41:34 +01:00
Mahmoud Ben Hassine
a547fe5b0a Deprecate JobOperator#start(String, String)
This method accepts job parameters as a string,
which can cause parsing issues.

Resolves #4304
2023-02-17 17:14:24 +01:00
Jinho Han
fa70bcd775 Add final to RunIdIncrementer and Job/Step BuilderFactory fields
Issue #4143
2023-02-16 20:53:32 +01:00
Mahmoud Ben Hassine
46c8ebbe7e Fix parameters parsing in JobOperator and MetaDataInstanceFactory
Before this commit, the parsing of job parameters in
JobOperator#start and MetaDataInstanceFactory#createJobExecution
was accepting the comma separated key=value pairs format,
which is incompatible with the new job parameters format
introduced in v5.

This commit updates the contract as well as the implementation
of those APIs to be compatible with v5.

Resolves #4253
Resolves #4301
2023-02-16 16:19:04 +01:00
Mahmoud Ben Hassine
9883cbc30e Add default converters for java.time types
Resolves #4257
2023-02-15 23:50:45 +01:00
Mahmoud Ben Hassine
30563cd25c Polish date converters 2023-02-15 23:46:03 +01:00
Mahmoud Ben Hassine
7ecac1c2ff Add default converters for java.util.Date parameter type
Resolves #4297
Resolves #4270
2023-02-15 19:05:47 +01:00
Mahmoud Ben Hassine
8aaf1d3d52 Fix decoding of default job parameter type in extended notation
Resolves #4299
2023-02-13 17:32:08 +01:00
Mahmoud Ben Hassine
0b105696fd Fix code formatting 2023-02-13 17:05:57 +01:00
Philippe Marschall
41517ea283 Use ExecutionContext map constructor
Use ExecutionContext map constructor to simplify
ExecutionContextRowMapper.mapRow.

Issue #3985
2023-02-13 16:02:52 +01:00
Philippe Marschall
b38226e810 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:38:34 +01:00
Taeik Lim
15f3637ac8 Polish code indent in Javadocs 2023-02-13 13:42:52 +01:00
Philippe Marschall
23878c6cca Remove unused method
Remove the unused #contains method
2023-02-13 13:33:17 +01:00
juhyun
c7c6dbec5c Add '#' to @link method 2023-02-13 13:30:09 +01:00
juhyun
0b500dc933 Fix double "use" typo 2023-02-13 13:30:09 +01:00
Henning Poettker
f4f00fbf49 Synchronize reader for multithreaded test 2023-02-13 13:25:42 +01:00
Mahmoud Ben Hassine
3a9e6e606c Fix typo in the Javadoc of JobParameter 2023-02-08 14:58:18 +01:00
drow724
6bea505f15 Add notNull assertion in JobParameter to ensure type is not null
Resolves #4263
2023-02-08 14:55:06 +01:00
Mahmoud Ben Hassine
33c8760f49 Fix Oracle migration script for v5
Resolves #4271
2023-02-08 14:39:12 +01:00
AlbericMartel
2cb9a24717 Fix PostgreSQL migration script for v5
Resolves #4260
2023-02-08 11:21:06 +01:00
Mahmoud Ben Hassine
97e98e21b0 Add native proxy hint for JobOperator
Resolves #4248
2023-02-07 22:37:48 +01:00
Mahmoud Ben Hassine
daaa0013b1 Fetch step executions in SimpleJobRepository#findJobExecutions
Resolves #4242
2022-11-23 17:23:44 +01:00
Mahmoud Ben Hassine
4a946892ed Revert adding a JobRegistryBPP in the default batch configuration
Related to #4245
2022-11-23 15:52:10 +01:00
Mahmoud Ben Hassine
15069aa1dc Fix typos 2022-11-23 15:52:10 +01:00
Danilo Piazzalunga
fc0ec01ff8 Throw IllegalStateException from afterPropertiesSet
Consistently use Assert.state in the afterPropertiesSet()
methods to throw IllegalStateException instead of
IllegalArgumentException when some properties are missing
and/or invalid.

Resolves #2244
2022-11-23 12:22:26 +01:00
Mahmoud Ben Hassine
66e0b9afde Register a JobOperator and a JobRegistryBPP with the default configuration
This commit registers a `SimpleJobOperator` with the default
batch configuration through `EnableBatchProcessing` and
`DefaultBatchConfiguration`.

It also registers a `JobRegistryBeanPostProcessor` to automatically
populate the registry with user defined jobs.

Resolves #3941
2022-11-23 10:26:17 +01:00