Commit Graph

6139 Commits

Author SHA1 Message Date
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
swapy
1343eee3c2 Fix type of date/time fields in documentation
This commit fixes a bug in the documentation of JobExecution
and StepExecution to point to `java.time.LocalDateTime` instead
of `java.util.Date`.

Resolves #4324
2023-03-21 15:24:20 +01:00
Tatiana Slednikova
145c31b86f Change JobParameters to HashMap
Resolves #4179
2023-03-21 15:01:06 +01:00
Mahmoud Ben Hassine
597ecb4b68 Improve the issue reporting process
This commit adds a set of guidelines to report issues.

Related to: #4329
2023-03-17 23:21:20 +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
Mahmoud Ben Hassine
af62a22919 Add Spring Batch logo in README.md 2023-03-01 22:28:21 +01:00
Mahmoud Ben Hassine
7a0fedec02 Add Github Action to generate release notes 2023-02-28 16:46:24 +01:00
Mahmoud Ben Hassine
8c8fc19809 Update CI/CD build status badge 2023-02-28 15:04:55 +01:00
Mahmoud Ben Hassine
dee6862f9a Rename Github Actions workflow files 2023-02-27 22:34:08 +01:00
Mahmoud Ben Hassine
e07ed7a58b Update the release process to automatically close the staging repository 2023-02-27 22:31:19 +01:00
Mahmoud Ben Hassine
8b4dce7923 Update documentation upload build 2023-02-27 22:28:28 +01:00
Mahmoud Ben Hassine
58802381c9 Add Github Action to deploy a milestone release to Artifactory 2023-02-27 22:26:20 +01:00
Mahmoud Ben Hassine
37c26dd005 Next development version 2023-02-23 00:27:23 +01:00
Mahmoud Ben Hassine
3aa503d6ca Release version 5.0.1 2023-02-23 00:20:40 +01:00
Mahmoud Ben Hassine
310575ab06 Fix directory setup in sonatype staging build 2023-02-23 00:00:09 +01:00
Mahmoud Ben Hassine
3aa72bf96a Fix artifact URLs in sonatype staging build 2023-02-22 23:36:16 +01:00
Mahmoud Ben Hassine
001aac4f46 Fix steps order in artifactory staging build 2023-02-22 20:53:21 +01:00
Mahmoud Ben Hassine
d594be1d87 Prepare release 5.0.1 2023-02-22 18:30:08 +01:00
Mahmoud Ben Hassine
e08e6cabf1 Update CI Management section in pom.xml files 2023-02-22 16:38:51 +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
drow724
89e76164af Add default component name in constructor of AvroItemReader
Issue #4285
2023-02-21 18:08:46 +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
ab9dbc3e93 Update documentation upload build to deploy XSD schemas
Issue #4128
2023-02-20 22:53:55 +01:00
Mahmoud Ben Hassine
558ad29f5b Remove version suffix from XSD schema
This is to be consistent with other XSDs from the portfolio
where the file with the latest XSD is not suffixed with a version.
2023-02-20 22:53:18 +01:00
Mahmoud Ben Hassine
1741815f51 Fix directory name in XSD schema distribution content 2023-02-20 22:43:43 +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
4ea54388e7 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 04:46:47 +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
Mahmoud Ben Hassine
e4efa24e57 Deprecate MetaDataInstanceFactory#createJobExecution
This method accepts job parameters as a string, which can
cause parsing issues.

Resolves #4303
2023-02-17 17:14:24 +01:00
Henning Poettker
523386e674 Prefer Slice over Page in RepositoryItemReader
Resolves #4115
2023-02-17 17:13:36 +01:00
jinwoo-Bae
4f1dc94b07 Implement equals() and hashcode() in Chunk class
Resolves #4296
2023-02-17 06:18:25 +01:00
Jinho Han
fa70bcd775 Add final to RunIdIncrementer and Job/Step BuilderFactory fields
Issue #4143
2023-02-16 20:53:32 +01:00
Aleksandr Arshavskiy
ed4a318d26 Disable BatchTestContextCustomizer after AOT processing
Issue #4286
2023-02-16 17:22:00 +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
0dfa73773b Remove unused job parameters in samples 2023-02-16 15:47:14 +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
Philippe Marschall
8c7fb5ca02 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:12:56 +01:00
Taeik Lim
15f3637ac8 Polish code indent in Javadocs 2023-02-13 13:42:52 +01:00