forked from debezium/debezium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DBZ-PGYB][yugabyte/yuyabyte-db#24204] Changes to support LSN types w…
…ith replication slot (#162) YugabyteDB logical replication now supports creating replication slots with two types of LSN: 1. `SEQUENCE` - This is a monotonic increasing number that will determine the record in global order within the context of a slot. However, this LSN can’t be compared across two LSN’s of different slots. 2. `HYBRID_TIME` - This will mean that the LSN will be denoted by the `HybridTime` of the transaction commit record. All the records of the transaction that is streamed will have the same LSN as that of the commit record. The user has to ensure that the changes of a transaction are applied in totality and the acknowledgement is sent only if the commit record of a transaction is processed. With this mode, the LSN value can be compared across the different slots. To ensure that the connector also supports streaming for both LSN types, this PR introduces the following changes: 1. Adds a configuration property `slot.lsn.type` which accepts two parameters i.e. `SEQUENCE` or `HYBRID_TIME` with the default being `SEQUENCE` a. **Note that this property only accepts parameters in uppercase.** 2. Depending on the LSN type provided, the connector processes events accordingly. This closes yugabyte/yuyabyte-db#24204
- Loading branch information
1 parent
060f600
commit 985efdd
Showing
6 changed files
with
224 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.