Repository navigation
implement support for per-stream state in mysql source - #16007
Conversation
|
NOTE
|
|
/test connector=connectors/source-mysql
Build FailedTest summary info: |
|
NOTE
|
|
/test connector=connectors/source-mysql |
|
NOTE
|
|
/test connector=connectors/source-mysql
Build PassedTest summary info: |
Edward Gao (edgao)
left a comment
There was a problem hiding this comment.
one comment about tests but otherwise ![]()
| container = new MySQLContainer<>("mysql:8.0"); | ||
| container.start(); | ||
|
|
||
| setEnv(EnvVariableFeatureFlags.USE_STREAM_CAPABLE_STATE, "true"); |
There was a problem hiding this comment.
does this test need to override supportsPerStream?
# Conflicts: # airbyte-integrations/connectors/source-mysql-strict-encrypt/src/test/java/io/airbyte/integrations/source/mysql_strict_encrypt/MySqlStrictEncryptJdbcSourceAcceptanceTest.java # airbyte-integrations/connectors/source-mysql/src/test-integration/java/io/airbyte/integrations/source/mysql/CdcMySqlSourceAcceptanceTest.java # airbyte-integrations/connectors/source-mysql/src/test-integration/java/io/airbyte/integrations/source/mysql/MySqlSourceAcceptanceTest.java
|
NOTE
|
|
/test connector=connectors/source-mysql
Build PassedTest summary info: |
|
NOTE
|
|
/publish connector=connectors/source-mysql
if you have connectors that successfully published but failed definition generation, follow step 4 here |
|
/publish connector=connectors/source-mysql-strict-encrypt
if you have connectors that successfully published but failed definition generation, follow step 4 here |
|
NOTE
|
|
/publish connector=connectors/source-mysql
if you have connectors that successfully published but failed definition generation, follow step 4 here |
|
/publish connector=connectors/source-mysql-strict-encrypt
if you have connectors that successfully published but failed definition generation, follow step 4 here |
|
/publish connector=connectors/source-mysql run-tests=false
if you have connectors that successfully published but failed definition generation, follow step 4 here |
|
/publish connector=connectors/source-mysql-strict-encrypt run-tests=false
if you have connectors that successfully published but failed definition generation, follow step 4 here |
|
/publish connector=connectors/source-mysql run-tests=false
if you have connectors that successfully published but failed definition generation, follow step 4 here |
|
/publish connector=connectors/source-mysql-strict-encrypt run-tests=false
if you have connectors that successfully published but failed definition generation, follow step 4 here |
|
Just a heads up, this PR might actually include my changes #16202 since I forgot to add the version number bump to the |
* implement support for per-stream state in mysql source * enable flag in tests * activate per stream in tests * enable per stream state in test * bump version * auto-bump connector version [ci skip] Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
* implement support for per-stream state in mysql source * enable flag in tests * activate per stream in tests * enable per stream state in test * bump version * auto-bump connector version [ci skip] Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
Issue : #15725
Tested this manually by first creating a connector and starting a sync on version 0.6.5 and then changing the connector to include my changes and see the transformation :
NON-CDC mode : As you can see below, when I ran the first sync, the saved state in the database was of LEGACY type and then I switched the connector to use the connector image which included my changes and then again ran the sync and after that the saved state was converted into STREAM type with 2 records (representing 2 tables that I was syncing). I again ran a sync with this new state to make sure things worked fine and it worked as expected.
CDC mode : As you can see below, when I ran the first sync, the saved state in the database was of LEGACY type and then I switched the connector to use the connector image which included my changes and then again ran the sync and after that the saved state was converted into GLOBAL type with 3 records (representing 2 tables that I was syncing + the shared state which is basically the debezium sate). I again ran a sync with this new state to make sure things worked fine and it worked as expected.
🚨 User Impact 🚨
Are there any breaking changes? What is the end result perceived by the user? If yes, please merge this PR with the 🚨🚨 emoji so changelog authors can further highlight this if needed.
Pre-merge Checklist
Expand the relevant checklist and delete the others.
New Connector
Community member or Airbyter
airbyte_secret./gradlew :airbyte-integrations:connectors:<name>:integrationTest.README.mdbootstrap.md. See description and examplesdocs/integrations/<source or destination>/<name>.mdincluding changelog. See changelog exampledocs/integrations/README.mdairbyte-integrations/builds.mdAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>command is passing/publishcommand described hereUpdating a connector
Community member or Airbyter
airbyte_secret./gradlew :airbyte-integrations:connectors:<name>:integrationTest.README.mdbootstrap.md. See description and examplesdocs/integrations/<source or destination>/<name>.mdincluding changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>command is passing/publishcommand described hereConnector Generator
-scaffoldin their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplatesthen checking in your changesTests
Unit
Put your unit tests output here.
Integration
Put your integration tests output here.
Acceptance
Put your acceptance tests output here.