Commit Graph

842 Commits

Author SHA1 Message Date
Chris Cranford
036d7f831d DBZ-6355 Fix test logic 2023-04-27 09:28:29 -04:00
Chris Cranford
2ee3249d84 DBZ-6355 Fix memory-leak with heap-based abandoned transaction cache 2023-04-27 09:28:29 -04:00
Chris Cranford
8ef9a6f015 DBZ-6355 Reduce logging verbosity 2023-04-27 09:28:29 -04:00
Chris Cranford
e81af64adc DBZ-6355 Add ORA-01555 fallback based on change time 2023-04-27 09:28:29 -04:00
Chris Cranford
1fbb6f228d DBZ-6355 Fix test failures 2023-04-27 09:28:29 -04:00
Chris Cranford
3d7c87401f DBZ-6355 Fix format 2023-04-27 09:28:29 -04:00
Sergey Eizner
b954afd2cc DBZ-6355 Fix log message 2023-04-27 09:28:29 -04:00
Chris Cranford
9f28ef17e4 DBZ-6355 Don't abandon transactions if calculated SCN is before oldest buffered SCN 2023-04-27 09:28:29 -04:00
Chris Cranford
34f6b221c6 DBZ-6355 Remove unused code 2023-04-27 09:28:29 -04:00
Chris Cranford
a0fedf9439 DBZ-6355 Rework test 2023-04-27 09:28:29 -04:00
eizners
fa42a1b0ce DBZ-6355 fix unit tests errors 2023-04-27 09:28:29 -04:00
Sergey Eizner
cac5485176 DBZ-6355 Change to the last offset 2023-04-27 09:28:29 -04:00
Chris Cranford
e6e19fb578 DBZ-6329 Trim value of rs_id 2023-04-23 18:29:07 +02:00
Chris Cranford
f624e39bbc DBZ-6329 Make sure Oracle source rs_id field populated 2023-04-23 18:29:07 +02:00
Jiri Pechanec
ee5ba8e56f DBZ-2979 Fix Oracle Xstream tests 2023-04-19 15:57:49 +02:00
Chris Cranford
16385994d8 DBZ-5395 Improve Oracle offset management when LOB enabled 2023-04-19 11:24:10 +02:00
Chris Cranford
1805f6e75e DBZ-6276 Marked test ignored by default
The default Debezium Oracle images are pre-configured with archive log mode
enabled and this isn't something we can simply turn off and back on in the
test suite proper. This test must be invoked manually and separately, so it
is disabled by default in the overall test suite execution.
2023-04-19 10:52:18 +02:00
Mark Bereznitsky
4df3895d65 DBZ-6276 changed Oracle archive log check to fail if conditions require it 2023-04-19 10:52:18 +02:00
Jiri Pechanec
2181251a9f DBZ-2979 Fix Oracle tests 2023-04-19 10:50:41 +02:00
Ronak Jain
2c2b87b846 DBZ-2979 If column.include.list/column.exclude.list are used and the target table receives an update for the excluded (or not included) column - such events should be ignored
* [Unstable][Untested] Add config in Oracle Connector

Addresses/Closes DBZ-2979
2023-04-19 09:04:29 +02:00
Chris Cranford
84d57628b7 DBZ-6155 Avoid batch size "ping-pong" in Oracle metrics
This avoids a scenario where we want to increment the batch size; however, the
current batch size is equal to the max and therefore triggers a decrement and
the next iteration increments. The new behavior will be that we don't trigger
this ping pong. With this change, we can track specifically when we reach the
max batch size and only log the warning once. If the batch size drops, and it
later increments, the warning will be logged again but this should be expected.
2023-04-10 16:51:11 -04:00
doupengwei
352d616173 DBZ-6155 Adjust LogMiner batch size based on the default batch size rather than current batch size.
Using current batch size for comparison is wrong in case that when currentScn is topScn as described in DBZ-6155.
In the other case (when topScn is behind currentScn) can eventually lead to this situation.
when topScn would fall behind currentScn more and more as we would compare currentScn - topScn with bigger and bigger number (current batch size).

Comapring with logMiningBatchSizeMin could result in very small window which would mean we will send many small queries instead of several bigger ones during mining.
Therefore reverting back to do the adjustments based on the defaultBatchSize.
2023-04-10 16:51:11 -04:00
harveyyue
c525f34cd0 DBZ-6070 DDL events not stored in schema history topic for excluded tables 2023-04-06 12:10:30 +02:00
Chris Cranford
2ef6bd66e4 DBZ-6273 Fix Infinispan serialization of table names with spaces 2023-04-01 17:04:06 -04:00
Chris Cranford
3bb82d6b73 DBZ-6275 Correctly sync Infinispan cache on event counter reset 2023-04-01 16:37:25 -04:00
Chris Cranford
6419c0e704 DBZ-6274 Fix ClusterLoader deprecation using embedded Infinispan
The embedded Infinipsan configuration used a deprecated index model, and
moved to a non-deprecated model called SIFS using segments.
2023-04-01 15:29:12 -04:00
Chris Cranford
42f375f570 DBZ-6274 Align test configurations for remote Infinispan caches
The "fetch-state" attribute was deprecated and is no longer a valid option
with Infinispan 14, which causes the tests to fail to execute.  Additionally,
the "segmented" attribute must be set to true going forward as the file
store implementation no longer supports non-segmented configurations.
2023-04-01 15:29:12 -04:00
Jiri Pechanec
04def67900 DBZ-6221 Remove print statements 2023-03-28 14:45:12 +02:00
Chris Cranford
f9bb5eb82f DBZ-6221 Correctly interpret CHARACTER/CHARACTER VARYING data types while streaming 2023-03-28 14:45:12 +02:00
Jiri Pechanec
f62caf9c83 DBZ-6143 Make tests running with xstream 2023-03-08 09:15:48 +01:00
Jiri Pechanec
3da2434c6c DBZ-823 Restrict the type with generics 2023-03-03 12:47:15 +01:00
Jiri Pechanec
5e666f00ee DBZ-823 Add JavaDoc to new interfaces 2023-03-03 12:47:15 +01:00
Jiri Pechanec
7d92dc0211 DBZ-823 Don't use getter based name 2023-03-03 12:47:15 +01:00
Jiri Pechanec
0f4adb9fe6 DBZ-823 Use better name for CF with main connection 2023-03-03 12:47:15 +01:00
ggaborg
e875e784a0 DBZ-823 CR changes 2023-03-03 12:47:15 +01:00
ggaborg
065dc997b9 DBZ-823 Optionally parallelize initial snapshots 2023-03-03 12:47:15 +01:00
Vojtech Juranek
fcb0e77bbb DBZ-3594 Warn when obtaning table schema which should be alread present
We load all the schemas of the captured tables when the connector
starts. If we process a record from a table which schema is not
available, this means we have some bug in the intial schema loading.
Don't fail in such case, but print a warning about that.
2023-02-23 09:26:07 -05:00
Chris Cranford
e320abc834 DBZ-6143 Unify Oracle TIMESTAMP WITH TIME ZONE format
When taking a snapshot, the Oracle connector was converting the TIMESTAMP
WITH TIME ZONE value to GMT and per the documentation, the value should
be emitted in the time zone of the data.

The snapshot emitted value in GMT is temporally accurate, so there is no
data inconsistency, but the emitted format itself was inconsistent when
looking at how the column data was emitted during a snapshot versus in a
streaming event.
2023-02-23 10:43:38 +01:00
Chris Cranford
dd9ca95bec DBZ-6125 Fix potential stale offsets when using PDBs
DBZ-5648 introduced a regression where transaction start, commit, and rollback
events were only being read from within the scope of the configured PDB that
the connector was capturing changes instead of the entire Oracle database.
This can lead to situations where the offsets may not be advanced as quickly
in a low traffic PDB environment, potentially causing stale offsets.
2023-02-20 13:29:11 +01:00
Chris Cranford
a89212efef DBZ-6120 Correctly handle quoting table/schema names 2023-02-20 13:26:49 +01:00
Chris Cranford
58f3770ad1 DBZ-6079 Change query.fetch.size default from 0 to 2000 for Oracle 2023-02-16 08:15:22 +01:00
Chris Cranford
6b40103eaa DBZ-6107 Fix bulk updates when LOB is enabled 2023-02-16 07:29:37 +01:00
Chris Cranford
7cd7cad094 DBZ-6091 Fix SSN NumericOverflow exception 2023-02-14 09:44:21 +01:00
Chris Cranford
0771923416 DBZ-6094 Reduce frequency of "Transaction already processed" debug message 2023-02-14 09:09:44 +01:00
harveyyue
57b902ff8c DBZ-5743 Introduce alternative AVRO_UNICODE mode for field name selector 2023-02-02 13:21:45 +01:00
Anil Dasari
e1f9d64fbb DBZ-5852:Snapshotter#snapshotCompleted is invoked regardless of snapshot result 2023-01-19 09:24:02 +01:00
Jiri Pechanec
e8729bb0eb DBZ-5996 Properly handle zoned timestamp width in Oracle 2023-01-18 10:42:36 +01:00
Jiri Pechanec
bcd6787cdc DBZ-6008 Revert "DBZ-3653 Introduce incremental.snapshot.isolation.mode config"
This reverts commit 6d8bcd42fd.
2023-01-17 10:40:20 +01:00
govi20
6d8bcd42fd DBZ-3653 Introduce incremental.snapshot.isolation.mode config 2023-01-11 08:55:33 +01:00
Jiri Pechanec
8ca5e0a9b5 DBZ-4669 Reformat after plugin version consolidation 2023-01-11 06:44:53 +01:00