5536 Commits

Author SHA1 Message Date
Spring Builds
c540c62cdd [artifactory-release] Next development version 2021-11-17 12:53:32 +00:00
Spring Builds
2c2ea1c35d [artifactory-release] Release version 4.2.8.RELEASE 2021-11-17 12:53:29 +00:00
Mahmoud Ben Hassine
8d80f0715b Prepare release 4.2.8 2021-11-17 11:19:40 +01:00
Mahmoud Ben Hassine
d15ba3aebe Update Spring dependencies to latest snapshots 2021-11-03 13:35:17 +01:00
Philippe Marschall
89f4241962 Make JobParameters#getParameters() immutable
Make  JobParameters#getParameters() immutable and avoid the defensive
copy.

Fixes #3980
2021-10-01 19:43:30 +02:00
Henning Pöttker
fa7ba92662 Fix multi-threaded empty read for JdbcPagingItemReader
On empty input, the JdbcPagingItemReader cannot derive
a start value for the sort key to be used in further
queries. For multi-threaded steps, it is thus necessary
to prevent the reader from trying to read further pages
if the first page is empty.

Issue #3898
2021-09-24 10:38:55 +02:00
Mahmoud Ben Hassine
1cbbf8af1a Implement equals/hashcode in BatchTestContextCustomizer
Resolves #3940
2021-09-13 21:50:35 +02:00
Rémi Kaeffer
a644ae31c2 Fix double "the" typo everywhere in source code 2021-09-03 19:09:41 +02:00
Henning Pöttker
38fe9a0262 Fix HippyMethodInvoker by not considering unsuitable candidates
Resolves #3794
2021-09-03 15:02:03 +02:00
tinh cao
2640e73f91 Remove whitespace to support multiple execution statement
Issue #3861
2021-09-03 11:37:54 +02:00
Mahmoud Ben Hassine
0542005beb Fix step execution retrieval in SimpleJobExplorer#getLastJobExecution
Before this commit, SimpleJobExplorer#getLastJobExecution returned
the last job execution without fetching its step executions and
their execution contexts.

This commit fixes the implementation to load the entire object
graph as done in SimpleJobExplorer#getJobExecution.

Resolves #3943 #3944
2021-08-27 14:06:10 +02:00
Sanghyuk Jung
4669921cb6 Fix typos in document for configuring steps 2021-08-18 21:47:06 +02:00
Ilya Samartsev
91b393c270 Fix NPE in sql exception translation
Resolves #3968
2021-08-18 20:31:32 +02:00
Mahmoud Ben Hassine
78d82a5d93 Exclude spring-batch-docs from being published to Artifactory
Resolves #3922
2021-05-27 11:08:11 +02:00
Mahmoud Ben Hassine
284eca123d Upgrade gradle version to 6.9 2021-05-27 09:22:40 +02:00
Mahmoud Ben Hassine
3f7c92983f Update Spring dependencies to latest snapshots 2021-05-27 09:19:01 +02:00
Spring Builds
4247b1e7fe [artifactory-release] Next development version 2021-05-19 08:48:33 +00:00
Spring Builds
4cad5595d7 [artifactory-release] Release version 4.2.7.RELEASE 2021-05-19 08:48:27 +00:00
Mahmoud Ben Hassine
9b47b60dc7 Prepare release 4.2.7 2021-05-19 10:29:36 +02:00
abielewicz
9a52c6b55a Change the order in which datum writer is selected
Due to GenericRecord being checked before SpecificRecordBase,
GenericDatumWriter was used incorrectly for types that extend
SpecificRecordBase.

Resolves #3859
2021-05-18 17:53:46 +02:00
Taeik Lim
f33fa4d261 Fix NPE in JobParameters.toProperties on null parameter value
Issue #834
2021-05-18 16:18:18 +02:00
Taeik Lim
44034afe7e Fix misused 'end()' in examples
`end()` should be used with `FlowJobBuilder`.

Issue #3902
2021-05-18 11:00:53 +02:00
이동욱
8b57a464cf Replace ArrayList with LinkedList in ListItemReader
Issue #3782
2021-05-18 10:37:37 +02:00
ChangYong
3a1e769945 Fix code examples in documentation
The changed code examples in this commit used the
`.end()` method which does not exist in `SimpleStepBuilder`.

Issue #3889
2021-05-17 20:00:31 +02:00
Rajesh Chandavaram
28e3f04626 Improve code example in "Configuring and Running a Job" section
The sample that shows how to provide a custom transaction manager
via a BatchConfigurer has been updated to use the constructor
of `DefaultBatchConfigurer` that takes a DataSource.

Issue #3888
2021-05-17 19:42:56 +02:00
Parikshit Dutta
67e3990949 Updated verifyCursorPosition default to true in JdbcCursorItemReaderBuilder
Issue #3893
2021-05-12 15:15:48 +02:00
Mark Bonnekessel
df7f8316bd Override SimpleStepBuilder.faultTolerant() in FaultTolerantStepBuilder
Override SimpleStepBuilder.faultTolerant() in FaultTolerantStepBuilder
to prevent creation of a new FaultTolerantStepBuilder when calling
faultTolerant() on an existing FaultTolerantStepBuilder. Otherwise
configuration, like chunkListeners, are lost.

Issue #3840
2021-05-11 19:26:23 +02:00
Parikshit Dutta
6e103d33dd Update SimpleStepBuilder to assign ItemProcessor lambda at construction
Issue #3749
2021-05-11 18:50:04 +02:00
Mahmoud Ben Hassine
561ab85410 Update Spring dependencies to latest snapshots 2021-05-11 15:31:13 +02:00
Mahmoud Ben Hassine
5c5dedfafe Fix job execution validation in SimpleJobRepository
Before this commit, the logic that validates if a job
instance is complete or not was based only on the size
of previous parameters, without checking if they are
identifying or not.

This commit introduces a change that uses only
identifying job parameters to identify a job instance
and validate its previous executions.

Issue #1221
2021-05-11 15:06:03 +02:00
Mahmoud Ben Hassine
3ce14590d0 Upgarde XStream dependency to version 1.4.16
Issue #3877
2021-03-30 17:06:20 +02:00
Mahmoud Ben Hassine
f5473623ae Update Spring dependencies to latest snapshots 2021-03-24 16:48:03 +01:00
Spring Buildmaster
d0659110c3 [artifactory-release] Next development version 2021-03-17 20:56:17 +00:00
Spring Buildmaster
ccc3bd00e2 [artifactory-release] Release version 4.2.6.RELEASE 2021-03-17 20:56:14 +00:00
Marten Deinum
f284e36a12 Reduce the toCharArray overhead
Both the PatternMatcher and JdbcParameterUtils use String.toCharArray for
processing. This will create a new char[] which needs to be collected. The
same code has been rewritten to use String.charAt to reduce the overhead.

Additionally unneeded object creation in the PatternMatcher has been removed
as well, to reduce further objects needed to be gc'ed.
2021-03-17 18:32:29 +01:00
Marten Deinum
8d645dbf33 Better sizes for StringBuilder
StringBuilder by default has a size of 16, however there
are some places that already create larger strings already.
For efficiency and garbage reduction it would be better to have
larger sizes to begin with.
2021-03-17 16:06:10 +01:00
Marten Deinum
ff3c7c1e58 Added isXXXEnabled for logging statements
Guarded the logging statements which do concatenation of strings
or calling toString on objects. When a log level isn't enabled
this still would produce garbage that would need to be collected.

Guarded all logging up to info, warn and error can be assumed to be
enabled on a production system.
2021-03-17 15:10:29 +01:00
Mahmoud Ben Hassine
abc937dec2 Update dependencies 2021-03-17 10:00:43 +01:00
Mahmoud Ben Hassine
4856a9ff5f Fix documentation of chunk-oriented processing
Resolves #1629 #1179 #1069 #3833

(cherry picked from commit 3fbfbb9503)
2021-03-11 15:59:33 +01:00
Niels Ferguson
5982e20af8 Fix incorrect usage of StringBuilder#append in TransactionAwareBufferedWriter
Issue #3745
2021-03-10 10:39:21 +01:00
Mahmoud Ben Hassine
96beb18bf6 Add timeout when flushing items to Kafka in KafkaItemWriter
Issue #3773
2021-03-09 16:21:11 +01:00
Mahmoud Ben Hassine
4ffc0827ce Refine contribution #3827
* Update year in licence headers
* Update Javadoc
* Add `this` keyword where appropriate
2021-03-09 15:25:52 +01:00
Jacob Botuck
96606d92ad KafkaItemWriter.write should not return until items are confirmed to have been written
Issue #3773
2021-03-09 15:25:46 +01:00
siqqQ
7f79ec72eb Change the value of the kind attribute to ref
Issue #1479
2021-03-02 17:48:32 +01:00
Mahmoud Ben Hassine
38a1d78d52 Add java.sql.Timestamp to trusted classes in Jackson serializer
Resolves #3855
2021-03-01 13:50:50 +01:00
Mahmoud Ben Hassine
3b06e66da9 Polish contribution 58b2a7a2
* Update year in license headers
* Refactor test
2021-03-01 11:57:08 +01:00
Jagger
13530719da Add Arrays$ArrayList to trusted classes in Jackson serializer
Issue #3830
2021-03-01 11:54:50 +01:00
Mahmoud Ben Hassine
0182956b9d Update Spring projects dependencies to latest SNAPSHOT 2021-02-24 16:31:50 +01:00
Mahmoud Ben Hassine
85e71d1e07 Refine af14a2e471
* Make default constructors call other constructors with default values
* Fix formatting
* Update year in license headers
2021-02-23 16:52:35 +01:00
Marten Deinum
b3d5d31bfd Provide constructors for injection
Currently when reading/writing JSON and using the reader/marshaller provided
and you want a custom Gson or ObjectMapper instance it still creates the not
needed instance. Move the construction to a constructor and provide a constructor
to directly pass in the pre-configured Gson or ObjectMapper instance.

The same approach is used in Spring itself where Gson or ObjectMapper instances
can be passed in.
2021-02-23 16:52:24 +01:00