-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(connector-builder): add flag to disable cache #45095
fix(connector-builder): add flag to disable cache #45095
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
airbyte-cdk/python/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py
Outdated
Show resolved
Hide resolved
I think this can be fine as a temporary fix but it will change the behavior of connectors between the Connector Builder and an actual run. This is an example where there is a cache issue and disabling the cache would make the Connector Builder have the right behavior for the customer during test reads but the sync would have missing records. Would there be an easy way to call |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with this as a temporary fix. The longer term fix would be https://github.com/airbytehq/airbyte-internal-issues/issues/9650
@lazebnyi Before merging, can we validate these cases? I fear we might still have caches even with your change |
@maxi297 we created the stream component with the updated stream configuration you mentioned , but we disabled caching right before creating the instance (line 836 - model_to_component_factory.py) |
This approach also seems fine to me but I would feel safer with a test to confirm that substreams are also affected by disabling the cache. This will also serve as a good safety net against regression |
/approve-regression-tests
|
local e2e tests passed successfully |
What
disable caching when running from the builder
How
add the disable_cache option to the ModelToComponentFactory and pass this value during the initialization of the requester
Review guide
model_to_component_factory.py
connector_builder_handler.py
User Impact
No
Can this PR be safely reverted and rolled back?