-
Notifications
You must be signed in to change notification settings - Fork 4.5k
🎉 Postgres source: make initial cdc waiting time configurable #14451
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
Conversation
/test connector=connectors/source-postgres
Build FailedTest summary info:
|
/test connector=connectors/source-postgres
Build PassedTest summary info:
|
@tuliren Since Postgres Source connector is already in beta in addition to integration testing, I need you to perform the following manual test:
The expectation for the test is that all syncs succeed |
@alexandr-shegeda, thanks for the instructions. However, I have some questions about these steps:
This step seems unnecessary. This field will not be required. Actually in my opinion, all new fields should always be optional.
Currently the spec has
In this way, if there is anything wrong with this PR, users can still downgrade to a V1 without breaking their connection. |
d217807
to
d81a0c3
Compare
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 think we should build a safety check that the max wait time can be 5 minutes so that if a user mistakenly sets it to more than 5 minutes, we default to 5.
5 minutes has worked in 100% of cases so as of now we dont need it to be more than 5 minutes.
Given that we haven't done sufficient testing of this timeout value "in the wild" I would actually argue on the side of allowing users to set it to whatever they want. If we see people shooting themselves in the foot with values that are too large - we'll introduce a safety check based on what those "too large" values end up being. |
@grishick Am open to increasing the max allowed value to be more than 5 minutes but we should definitely have an upper cap even if its 30 minutes. |
Currently the max waiting time is 20 minutes in the spec.json. I will enforce the limit in Java as well. |
this PR needs a rebase |
…-postgres-timeout-configurable
…-postgres-timeout-configurable
/test connector=connectors/source-postgres
Build PassedTest summary info:
|
/test connector=connectors/source-postgres-strict-encrypt
Build PassedTest summary info:
|
Will publish and merge after #14574 is published and merged for safety. In that way, if there is anything wrong, users can downgrade without breaking their existing connections. |
@tuliren any update on this change? Once this is out we should be able to speed up the platform build a bit which would be nice |
Oh, the dependent PR has been merged. I will work on merging this PR now. |
…-postgres-timeout-configurable
/publish connector=connectors/source-postgres
if you have connectors that successfully published but failed definition generation, follow step 4 here |
/publish connector=connectors/source-postgres-strict-encrypt
if you have connectors that successfully published but failed definition generation, follow step 4 here |
What