Commit Graph

182 Commits

Author SHA1 Message Date
Grzegorz Kołakowski
430d828e86 DBZ-947 Add read_uncommitted snapshot.isolation.mode
During this mode neither table nor row-level locks are taken.
Therefore, other transactions are not affected at all.
However, this mode does not guarantee snapshot consistency.
2019-01-28 09:32:57 +01:00
Grzegorz Kołakowski
0835a8efba DBZ-947 Rename snapshot.locking.mode to snapshot.isolation.mode 2019-01-28 09:32:57 +01:00
Grzegorz Kołakowski
b132f2b704 DBZ-947 Fix semantics of snapshot locking modes
Exclusive mode: this mode takes exclusive locks on all monitored tables
during initial load (as documented).

None mode has been renamed to repeatable read since this name better
reflects its characteristics. None suggests that no locks are acquired.
No table locks are acquired indeed, however, repeatable read takes
shared row locks until the end of the transaction, which effectively
prevents other transactions from updating tables.
Table locks are hold only during schema snapshot.
2019-01-28 09:32:57 +01:00
Jiri Pechanec
52c2cf07dd DBZ-1101 Wait for snapshot when necessary 2019-01-25 21:27:06 +01:00
Gunnar Morling
9c8a8d191c DBZ-993 Improved logging output 2019-01-24 11:26:02 +01:00
Gunnar Morling
276e053f65 DBZ-1090 Some clean-up 2019-01-24 10:11:35 +01:00
Jiri Pechanec
b05daaf2c1 DBZ-1090 Print error details for test database failure 2019-01-24 10:11:35 +01:00
Jiri Pechanec
9b90f10331 DBZ-1090 Change position consists of commit LSN and change LSN 2019-01-24 10:11:35 +01:00
Gunnar Morling
b6e36306f6 DBZ-1084 Adding SQL Server to aggregator 2019-01-24 05:46:49 +01:00
Gunnar Morling
d445193b5a DBZ-1067 Moving SourceRecordAssert to core 2019-01-24 05:46:49 +01:00
Grzegorz Kołakowski
9b66e9a2a3 DBZ-1067 Add column blacklisting in SQL Server connector 2019-01-24 05:46:49 +01:00
Jiri Pechanec
2d198a8674 DBZ-1089 Database is no longer part of schema name 2019-01-24 05:46:49 +01:00
Gunnar Morling
1451349ae2 DBZ-1051 Obtaining database name eagerly;
Also fixing some typos and adding issue reference to test.
2019-01-24 05:46:49 +01:00
Jiri Pechanec
805cf9e4bf DBZ-1051 Handle object and db name letter case 2019-01-24 05:46:49 +01:00
Grzegorz Kołakowski
ac9cf8780f DBZ-1078 Cache sys.fn_cdc_map_lsn_to_time() results 2019-01-24 05:46:49 +01:00
Jiri Pechanec
d3b4e481b1 DBZ-1069 Store max LSN at start of snapshot 2019-01-24 05:46:49 +01:00
Jiri Pechanec
85e20f2dde DBZ-1069 Test of offsets 2019-01-24 05:46:49 +01:00
Jiri Pechanec
6b99569674 DBZ-1069 Snapshot is completed when offset is recovered 2019-01-24 05:46:49 +01:00
Grzegorz Kołakowski
fd8b50b0d2 DBZ-1066 Improve "Found previous offset" log
This is achieved by adding custom toString() to SqlServerOffsetContext
and SourceInfo.
2019-01-24 05:46:49 +01:00
Jenkins user
18ee93fab8 [maven-release-plugin] prepare for next development iteration 2019-01-24 05:46:49 +01:00
Jenkins user
44b067fff0 [maven-release-plugin] prepare release v0.9.0.Beta2 2019-01-24 05:46:49 +01:00
Jiri Pechanec
08b20f8084 DBZ-1047 Log proper change tables 2019-01-24 05:46:49 +01:00
Jiri Pechanec
efad7e4101 DBZ-859 Heartbeat is sent after snapshot 2019-01-24 05:46:49 +01:00
Gunnar Morling
91a89fae43 DBZ-1017 Formatting 2019-01-24 05:46:49 +01:00
Jiri Pechanec
ed71835cd2 DBZ-1017 Record schema evolution into history correctly 2019-01-24 05:46:49 +01:00
Gunnar Morling
33a39fe111 DBZ-978 Changing logged connector name 2019-01-24 05:46:49 +01:00
Jiri Pechanec
348af519e0 DBZ-978 Added last event and captured tables metrics 2019-01-24 05:46:49 +01:00
Gunnar Morling
ef77fb3c42 DBZ-1031 Some clean-up 2019-01-24 05:46:49 +01:00
Wout Scheepers
2ec234d386 DBZ-1031 Support for tables with reserved names 2019-01-24 05:46:49 +01:00
Gunnar Morling
8daac8a4b0 DBZ-966 Adding 'snapshot.delay.ms' option to Oracle and SQL Server connectors 2019-01-24 05:46:49 +01:00
Jiri Pechanec
683fdfda6d DBZ-1007 Log captured but not whitelisted table 2019-01-24 05:46:49 +01:00
Jiri Pechanec
11201d382c DBZ-1003 Initialize database history 2019-01-24 05:46:49 +01:00
Gunnar Morling
944c67b0f2 DBZ-1002 Avoiding NPEs when connector failed to start 2019-01-24 05:46:49 +01:00
Jenkins user
5bced93cd8 [maven-release-plugin] prepare for next development iteration 2019-01-24 05:46:49 +01:00
Jenkins user
b7db816aa0 [maven-release-plugin] prepare release v0.9.0.Beta1 2019-01-24 05:46:49 +01:00
Gunnar Morling
050c192dd7 DBZ-812 Moving test-only methods to TestHelper 2019-01-24 05:46:49 +01:00
Jiri Pechanec
fdeaa1cff8 DBZ-812 Test for changes made before new capture is added 2019-01-24 05:46:49 +01:00
Jiri Pechanec
4973e1bf44 DBZ-812 Start new TX for snapshots 2019-01-24 05:46:49 +01:00
Jiri Pechanec
a47af6c633 DBZ-812 Add missing Javadoc 2019-01-24 05:46:49 +01:00
Jiri Pechanec
a52256aeb9 DBZ-812 Rename var; guard against NULL row LSN 2019-01-24 05:46:49 +01:00
Jiri Pechanec
fe9a61941c Test for change type of column 2019-01-24 05:46:49 +01:00
Jiri Pechanec
a39fe657e9 Support for column rename 2019-01-24 05:46:49 +01:00
Jiri Pechanec
f9e2f3571b Test drop column 2019-01-24 05:46:49 +01:00
Jiri Pechanec
70a93769eb DBZ-812 Changed schema read from the source table; schema evolution works for changes without new records in the batch 2019-01-24 05:46:49 +01:00
Jiri Pechanec
cf74b28ac0 DBZ-812 CDC tables poll interval derived from poll.interval.ms 2019-01-24 05:46:49 +01:00
Jiri Pechanec
8c28f3b859 DBZ-812 Column added during streaming 2019-01-24 05:46:49 +01:00
Jiri Pechanec
a912d43a51 DBZ-812 Table removed during streaming 2019-01-24 05:46:49 +01:00
Jiri Pechanec
61ff10a771 DBZ-812 Table added during streaming 2019-01-24 05:46:49 +01:00
Gunnar Morling
db0d91e86d DBZ-776 Removing redundant method;
Adjusting test for database property pass-through, as the connection isn't established any longer synchronously within start().
2019-01-24 05:46:49 +01:00
Jiri Pechanec
efa0b9c2b6 DBZ-776 Cleanup after review 2019-01-24 05:46:49 +01:00
Jiri Pechanec
6d14945d8a DBZ-776 Support for metrics 2019-01-24 05:46:49 +01:00
Jiri Pechanec
9dd4070fa6 DBZ-953 Expanding tests 2019-01-24 05:46:49 +01:00
Gunnar Morling
cff07e9967 DBZ-953 Adding @ThreadSafe marker 2019-01-24 05:46:49 +01:00
Gunnar Morling
c4700baa58 DBZ-953 Pulling decimal handling mode option up to RelationalDatabaseConnectorConfig 2019-01-24 05:46:49 +01:00
pradeepmvn
6bbead4e1f DBZ-953 Ability to configure "decimal.handling.mode" for SQL Server connector 2019-01-24 05:46:49 +01:00
Gunnar Morling
bb09d2c900 DBZ-964 Supporting pass-through of driver properties for SQL Server 2019-01-24 05:46:49 +01:00
Grzegorz Kołakowski
e6e7691cd6 DBZ-941 Add "snapshot" snapshot locking mode
The entire initial snapshot process is executed in snapshot transaction
isolation level.
2019-01-24 05:46:49 +01:00
Jenkins user
d2804da5ed [maven-release-plugin] prepare for next development iteration 2019-01-24 05:46:49 +01:00
Jenkins user
d0821d372b [maven-release-plugin] prepare release v0.9.0.Alpha2 2019-01-24 05:46:49 +01:00
jchipmunk
e973f93355 DBZ-918 Adding Debezium connector field to source info
This will allow consumers to recognize the Debezium connector used for creating a given message, helping them to adjust their behavior for a variety of connectors.
2019-01-24 05:46:49 +01:00
Jiri Pechanec
565e318f35 DBZ-897 Skip messages redelivered from database after restart 2019-01-24 05:46:49 +01:00
Jiri Pechanec
2f07e45707 DBZ-894 Use only schema and table name for filtering 2019-01-24 05:46:49 +01:00
Jiri Pechanec
5941d6c867 DBZ-873 Use CU9 version for testing 2019-01-24 05:46:49 +01:00
Jenkins user
4eea4dd1de [maven-release-plugin] prepare for next development iteration 2019-01-24 05:46:49 +01:00
Jenkins user
b5dc5a8289 [maven-release-plugin] prepare release v0.9.0.Alpha1 2019-01-24 05:46:49 +01:00
Gunnar Morling
3f877f6cc2 DBZ-40 Minor clarification 2019-01-24 05:46:49 +01:00
Jiri Pechanec
3fb0b0d4d7 DBZ-40 Superfluous whitechars 2019-01-24 05:46:49 +01:00
Jiri Pechanec
4ec4e4a10d DBZ-40 Database history initi is pulled up 2019-01-24 05:46:49 +01:00
Jiri Pechanec
183c180986 DBZ-40 Changes after first review 2019-01-24 05:46:49 +01:00
Gunnar Morling
21b8a69696 DBZ-40 Pinning SQL Server Docker image to 2017-CU8 as "latest" failed to return the current LSNs 2019-01-24 05:46:49 +01:00
Gunnar Morling
edbe8a169f DBZ-40 Misc. typo and formatting fixes 2019-01-24 05:46:49 +01:00
Jiri Pechanec
c7dd0c53dd DBZ-40 Add test for schema-only snapshot 2019-01-24 05:46:49 +01:00
Jiri Pechanec
80855ae2c1 DBZ-40 Processing queries return exactly one result 2019-01-24 05:46:49 +01:00
Jiri Pechanec
26f1e0e046 DBZ-40 Added Javadoc and logging 2019-01-24 05:46:49 +01:00
Jiri Pechanec
c95c64fcc0 DBZ-40 Connector restart test 2019-01-24 05:46:49 +01:00
Jiri Pechanec
fa0d301b8c DBZ-40 Snapshot test 2019-01-24 05:46:49 +01:00
Jiri Pechanec
3491ca488e DBZ-40 Snapshotting and connector restart 2019-01-24 05:46:49 +01:00
Gunnar Morling
36d47faada DBZ-40 Misc. minor fixes 2019-01-24 05:46:49 +01:00
Jiri Pechanec
0189e9dd3f DBZ-40 First cut of SQL Server streaming support 2019-01-24 05:46:49 +01:00
Gunnar Morling
ca395a5fde DBZ-40 Bumping POM version to 0.9.0-SNAPSHOT 2019-01-24 05:46:49 +01:00
Gunnar Morling
926ee6f5e8 DBZ-786 Typo fix 2019-01-24 05:46:49 +01:00
Jiri Pechanec
be614197eb DBZ-786 Scaffolding required for the SQL Server connector module 2019-01-24 05:46:49 +01:00