Improve error message on state initialization #39553
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
Addresses https://github.com/airbytehq/airbyte-internal-issues/issues/8257
The goal is to improve our visibility on errors that are actually unexpected and there we need to take action. All the cases we've seen for this error is users not doing the proper migration steps.
How
Raising an error if there is a state but it does not contain
states
User Impact
This error should now be reported as a config error and therefore improve the accuracy of our error reporting. For the user that is trying to sync the data, it shouldn't not change anything
Can this PR be safely reverted and rolled back?
Tests
This was tested by manually upgrading the version of the CDK to point to my local version using
airbyte-cdk = {path = "../../../airbyte-cdk/python/", develop = true}
in source-gitlab.Before
After
Release Plan
Following the release of this change, I'll update the following connectors as we are seeing issues for them in prod: