Commit Graph

5665 Commits

Author SHA1 Message Date
Philippe Marschall
f15edd414a Fix some raw types 2021-08-10 12:41:19 +02:00
Philippe Marschall
c9e06b2a7f Don't call wrapper constructors directly
The constructors of the wrapper classes for primitives (Double,
Integer, Long) have been deprecated since JDK 9 and should no longer be
called. Instead the static factory #valueOf should be used.
2021-08-10 11:54:25 +02:00
Philippe Marschall
1f3dd5f401 Replace Assert.assertThat with MatcherAssert.assertThat
Assert.assertThat is deprecated with MatcherAssert.assertThat as the
replacement.
2021-08-09 21:04:52 +02:00
Philippe Marschall
2aa94d09d1 Replace #initMocks with MockitoRule
Replace all references of MockitoAnnotations#initMocks with the
MockitoRule JUnit rule.
2021-08-09 18:33:39 +02:00
Henning Pöttker
8258325413 Refactor deprecated method extractDatabaseMetaData
Issue #3838
2021-08-09 18:22:35 +02:00
Henning Poettker
0ad68037b6 Reduce naming collisions in consecutive tests 2021-08-09 13:36:31 +02:00
Mahmoud Ben Hassine
792278d073 Fix typo in documentation 2021-08-06 22:33:12 +02:00
Mahmoud Ben Hassine
55c2df8782 Remove unused constant in StaxEventItemWriterBuilderTests 2021-08-06 22:17:51 +02:00
Mahmoud Ben Hassine
83579cfbdf Extract charset name as constant in JdbcExecutionContextDao 2021-08-05 22:14:05 +02:00
Mahmoud Ben Hassine
66c33372a6 Remove unused logger in MongoItemReader 2021-08-05 21:17:26 +02:00
Mahmoud Ben Hassine
06cdce19b9 Add note in README about the need to have Docker for a full build 2021-08-05 21:14:03 +02:00
Mahmoud Ben Hassine
a031637994 Add integration tests for all supported databases
Resolves #3092
2021-07-06 14:45:14 +02:00
Mahmoud Ben Hassine
2bbb40c4f6 Update dependencies 2021-07-05 15:31:12 +02:00
Mahmoud Ben Hassine
6b4c916321 Update README with instructions to generate docs 2021-05-27 08:39:32 +02:00
Jay Bryant
92e6f32e52 Add EPUB output
Add EPUB output and make all four output formats have links to one another,
to enable discoverability and accessibility (for the folks who need a
particular format to help them read the document).
2021-05-21 23:00:49 +02:00
abielewicz
f4e14ddf66 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:46:31 +02:00
Taeik Lim
4af4b05e33 Fix NPE in JobParameters.toProperties on null parameter value
Issue #834
2021-05-18 15:55:04 +02:00
dkjeong
1beb07ec51 Fix typo in documentation
Issue #3907
2021-05-18 11:18:34 +02:00
Taeik Lim
63cfc07a5e Fix misused 'end()' in examples
`end()` should be used with `FlowJobBuilder`.

Issue #3902
2021-05-18 10:46:48 +02:00
이동욱
4b8331d724 Replace ArrayList with LinkedList in ListItemReader
Issue #3782
2021-05-18 10:30:20 +02:00
ChangYong
b486e245d7 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 19:55:31 +02:00
Rajesh Chandavaram
8d181bc74d 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:31:01 +02:00
Parikshit Dutta
d76c083b04 Updated verifyCursorPosition default to true in JdbcCursorItemReaderBuilder
Issue #3893
2021-05-12 14:51:00 +02:00
Mahmoud Ben Hassine
d43de5cf65 Add github actions workflow to stage a release on maven central 2021-05-12 09:13:38 +02:00
Mark Bonnekessel
a43d3a5ab7 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:09:49 +02:00
Parikshit Dutta
58e82a56e7 Update SimpleStepBuilder to assign ItemProcessor lambda at construction
Issue #3749
2021-05-11 16:14:29 +02:00
Mahmoud Ben Hassine
7f0824b9da 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-05 16:20:28 +02:00
Mahmoud Ben Hassine
c4b001b732 Remove usage of deprecated APIs from testcontainers 2021-05-04 12:21:58 +02:00
Mahmoud Ben Hassine
b8a6a51488 Rename MySQLJdbcJobRepositoryTests to MySQLJdbcJobRepositoryIntegrationTests
Since this is a Docker based test, it should be part
of the integration test suite executed by
maven-failsafe-plugin during the `verify` phase.
2021-05-04 12:04:19 +02:00
Mahmoud Ben Hassine
5fbbad9888 Disable SSL usage in MySQL test container
By default, testcontainers does not use SSL. This commit
disable SSL usage in the datasource configuration to
prevent `SSLHandshakeException`s.
2021-05-04 11:21:33 +02:00
Mahmoud Ben Hassine
e401f99f7d Update contributor guide by replacing master with main
Issue #3879
2021-04-27 12:07:33 +02:00
Mahmoud Ben Hassine
ef2a2d8d24 Add instructions to build the project with Docker 2021-04-27 11:39:34 +02:00
Mahmoud Ben Hassine
d6419f4479 Update dependencies 2021-04-19 18:00:09 +02:00
Mahmoud Ben Hassine
de868b48e5 Update maven version to 3.8.1 in maven wrapper 2021-04-16 17:13:15 +02:00
Mahmoud Ben Hassine
d3fa7d084b Upgrade XStream dependency to version 1.4.16
Resolves #3877
2021-03-30 16:23:33 +02:00
Marten Deinum
11bac7c4e1 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:25:18 +01:00
Marten Deinum
e9bdcc6d66 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 15:50:38 +01:00
Marten Deinum
b7d144c10d 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 14:50:57 +01:00
Mahmoud Ben Hassine
3fbfbb9503 Fix documentation of chunk-oriented processing
Resolves #1629 #1179 #1069 #3833
2021-03-11 06:43:19 +01:00
Niels Ferguson
63b6dea514 Fix incorrect usage of StringBuilder#append in TransactionAwareBufferedWriter
Issue #3745
2021-03-10 10:13:24 +01:00
Mahmoud Ben Hassine
a15496805b Add timeout when flushing items to Kafka in KafkaItemWriter
Issue #3773
2021-03-09 14:48:25 +01:00
Mahmoud Ben Hassine
572a302725 Refine contribution #3827
* Update year in licence headers
* Update Javadoc
* Add `this` keyword where appropriate
2021-03-09 14:07:15 +01:00
Jacob Botuck
c886a60b4d KafkaItemWriter.write should not return until items are confirmed to have been written
Issue #3773
2021-03-09 14:04:19 +01:00
siqqQ
a6f283b4a8 Change the value of the kind attribute to ref
Issue #1479
2021-03-02 17:39:07 +01:00
Mahmoud Ben Hassine
1d23d66e27 Add java.sql.Timestamp to trusted classes in Jackson serializer
Resolves #3855
2021-03-01 13:39:35 +01:00
Mahmoud Ben Hassine
602656a241 Polish contribution 58b2a7a2
* Update year in license headers
* Refactor test
2021-03-01 11:25:42 +01:00
Jagger
58b2a7a26b Add Arrays$ArrayList to trusted classes in Jackson serializer
Issue #3830
2021-03-01 11:24:19 +01:00
Mahmoud Ben Hassine
7e7d39da05 Fix typo in CONTRIBUTING.md 2021-02-25 09:32:17 +01:00
Mahmoud Ben Hassine
be1192cac2 Fix regression in docs
Master/Slave terms were replaced
with Manager/Worker in 85b3e9002
but this seems to be lost when
merging efdce562b0.
2021-02-24 15:09:06 +01:00
Mahmoud Ben Hassine
7b2d7d1993 Refine af14a2e471
* Make default constructors call other constructors with default values
* Fix formatting
* Update year in license headers
2021-02-23 15:56:51 +01:00