Repository navigation
π source-mssql: support Read Committed snapshot isolation level - #28545
Octavia The Approver (octavia-approvington) merged 7 commits into
Conversation
Before Merging a Connector Pull RequestWow! 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:
If the checklist is complete, but the CI check is failing,
|
| // new replication method config since version 0.4.0 | ||
| if (config.hasNonNull(REPLICATION_FIELD)) { | ||
| final JsonNode replicationConfig = config.get(REPLICATION_FIELD); | ||
| if (config.hasNonNull(LEGACY_REPLICATION_FIELD) && config.get(LEGACY_REPLICATION_FIELD).isObject()) { |
There was a problem hiding this comment.
Maybe I should also add isText case to these as well?
There was a problem hiding this comment.
.isTextual() is for when replication_method was a string
.isObject() I think is suitable for a oneOf selection field.
Current implementation is with oneOf so it sounds like this is correct (?)
|
todo: bump version (patch) and add changelog |
Read Committed snapshot isolation level
|
| Step | Result |
|---|
π View the logs here
Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command
airbyte-ci connectors --name=source-mssql-strict-encrypt test
|
| Step | Result |
|---|
π View the logs here
Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command
airbyte-ci connectors --name=source-mssql test|
sunny (@sh4sh) This Looks good to me. |
|
| Step | Result |
|---|
π View the logs here
Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command
airbyte-ci connectors --name=source-mssql test|
I said to Sunny probably we can work in a next PR to remove all confusing code between legacy and the other one. |
|
| Step | Result |
|---|
π View the logs here
Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command
airbyte-ci connectors --name=source-mssql-strict-encrypt test
|
| Step | Result |
|---|
π View the logs here
Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command
airbyte-ci connectors --name=source-mssql test
|
| Step | Result |
|---|---|
| Validate airbyte-integrations/connectors/source-mssql-strict-encrypt/metadata.yaml | β |
| Connector version semver check | β |
| QA checks | β |
| Build connector tar | β |
| Build source-mssql-strict-encrypt docker image for platform linux/x86_64 | β |
| ./gradlew :airbyte-integrations:connectors:source-mssql-strict-encrypt:integrationTest | β |
| Acceptance tests | β |
π View the logs here
Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command
airbyte-ci connectors --name=source-mssql-strict-encrypt test|
Until we figure out what's up with the tests, I published a pre-release here for the user to try out: https://hub.docker.com/layers/airbyte/source-mssql/1.1.1-dev.91cb51d107/images/sha256-ae1f56d0b8a3a1a059868156c63f256572a4be55cc0ad7968ae3c6aac579c889 |
|
The user who reported this issue tested the fix and confirmed it works π |
|
| Step | Result |
|---|---|
| Validate airbyte-integrations/connectors/source-mssql-strict-encrypt/metadata.yaml | β |
| Connector version semver check | β |
| QA checks | β |
| Build connector tar | β |
| Build source-mssql-strict-encrypt docker image for platform linux/x86_64 | β |
| ./gradlew :airbyte-integrations:connectors:source-mssql-strict-encrypt:integrationTest | β |
| Acceptance tests | β |
π View the logs here
Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command
airbyte-ci connectors --name=source-mssql-strict-encrypt test|
/approve-and-merge reason="bug fix, tested separately as connector currently failing on master" |
|
| Step | Result |
|---|---|
| Validate airbyte-integrations/connectors/source-mssql/metadata.yaml | β |
| Connector version semver check | β |
| QA checks | β |
| Build connector tar | β |
| Build source-mssql docker image for platform linux/x86_64 | β |
| ./gradlew :airbyte-integrations:connectors:source-mssql:integrationTest | β |
| Acceptance tests | β |
π View the logs here
Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command
airbyte-ci connectors --name=source-mssql testβ¦8545) * make getSnapshotIsolationConfig grab the correct config * add object case for getDataToSyncConfig and getSnapshotIsolationConfig * update tests to use current config parameters * bump connector version * add changelog

What
Fixes #28543
How
This PR modifies two functions
getSnapshotIsolationConfig,getDataToSyncConfigand their applicable tests so that they are able to access the current connector config values.Recommended reading order
airbyte-integrations/connectors/source-mssql/src/main/java/io/airbyte/integrations/source/mssql/MssqlCdcHelper.javaairbyte-integrations/connectors/source-mssql/src/test/java/io/airbyte/integrations/source/mssql/MssqlCdcHelperTest.javaπ¨ User Impact π¨
This is a patch fix and should not cause breaking changes.
Pre-merge Actions
Expand the relevant checklist and delete the others.
Updating a connector
Community member or Airbyter
Airbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.