Skip to content

[Source-mssql] : Remove options for data_to_sync & snapshot_isolation - #33700

Merged
Akash Kulkarni (akashkulk) merged 9 commits into
masterfrom
akash/mssql-lsn
Jan 10, 2024
Merged

Akash Kulkarni (akashkulk) merged 9 commits into
masterfrom
akash/mssql-lsn

Conversation

@akashkulk

@akashkulk Akash Kulkarni (akashkulk) commented Dec 20, 2023 •

Copy link
Copy Markdown
Contributor

Closes https://github.com/airbytehq/airbyte-internal-issues/issues/2814 and #33229

Main changes here are to remove options for data_to_sync & snapshot_isolation options from the source-mysql CDC config.

  1. Data To Sync : Previously, users were given an option to sync "Existing & New" data (snapshot + incremental changes) or "New Changes Only". With the snapshotting logic added in [Source-MSSQL] Enable per-stream and Global states and migrate away from Legacy states #33018, we always end up performing a snapshot. IMO we should take an opinionated stance here to always snapshot if needed. This will ensure feature parity between other certified connectors.

Previously, the [ snapshot.mode](https://debezium.io/documentation/reference/stable/connectors/sqlserver.html#sqlserver-property-snapshot-mode) property was set to :

snapshot.mode = initial_only // For initial snapshot
snapshot.mode = initial OR schema_only // For incremental snapshots, based on configs

The main change here is to set

snapshot.mode = initial_only // For initial snapshot
snapshot.mode = initial // For incremental snapshots
  1. Snapshot isolation : Previously, users were given an option to set snapshot isolation. This would only be relevant if the user was set up in "Existing And New" mode. I propose that the snapshot.isolation property be set to read_committed by default. Airbyte's use case does not require the snapshot isolation level, which may lock tables while reading, but ensures full consistency. Airbyte ensure "at-least-once" data deliver and not "exactly once" data delivery. In addition, with the work to build our own snapshotting mechanism, this setting will soon be obsolete.

User impact

  1. Changing the snapshot isolation will not have any effect on user syncs.
  2. Changing the default mode to snapshot when the WAL has rotated may trigger refresh syncs for users, but we have no active users in cloud who are using this sync mode

@vercel

vercel Bot commented Dec 20, 2023 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Jan 10, 2024 8:13pm

@github-actions

github-actions Bot commented Dec 20, 2023 •

Copy link
Copy Markdown
Contributor

Before Merging a Connector Pull Request

Wow! What a great pull request you have here! 🎉

To merge this PR, ensure the following has been done/considered for each connector added or updated:

  • PR name follows PR naming conventions
  • Breaking changes are considered. If a Breaking Change is being introduced, ensure an Airbyte engineer has created a Breaking Change Plan.
  • Connector version has been incremented in the Dockerfile and metadata.yaml according to our Semantic Versioning for Connectors guidelines
  • You've updated the connector's metadata.yaml file any other relevant changes, including a breakingChanges entry for major version bumps. See metadata.yaml docs
  • Secrets in the connector's spec are annotated with airbyte_secret
  • All documentation files are up to date. (README.md, bootstrap.md, docs.md, etc...)
  • Changelog updated in docs/integrations/<source or destination>/<name>.md with an entry for the new version. See changelog example
  • Migration guide updated in docs/integrations/<source or destination>/<name>-migrations.md with an entry for the new version, if the version is a breaking change. See migration guide example
  • If set, you've ensured the icon is present in the platform-internal repo. (Docs)

If the checklist is complete, but the CI check is failing,

  1. Check for hidden checklists in your PR description

  2. Toggle the github label checklist-action-run on/off to re-run the checklist CI.

@nguyenaiden Duy Nguyen (nguyenaiden) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1. We should reach out to that one customer and let them know.

@postamar

Copy link
Copy Markdown
Contributor

Should you also remove some methods from the MsSqlTestDatabase implementation in the test fixtures? IIRC there's something about snapshot isolation in there.

@akashkulk
Akash Kulkarni (akashkulk) merged commit 804a34b into master Jan 10, 2024
@akashkulk
Akash Kulkarni (akashkulk) deleted the akash/mssql-lsn branch January 10, 2024 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/mssql

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants