Skip to content
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

[bulk-extract-cdk] skip errors caused by unparseable DDLs #48612

Merged
merged 1 commit into from
Nov 22, 2024
Merged

Conversation

burakku
Copy link
Contributor

@burakku burakku commented Nov 22, 2024

What

This change is to fix debezium bug mentioned in #48497

How

It fixes the problem by setting schema.history.internal.skip.unparseable.ddl in DebeziumProperties to True to skip errors caused by unparseable DDLs

Review guide

Reproduced the problem locally
Before the fix:
Screenshot 2024-11-22 at 10 25 15 AM
After fix:
Screenshot 2024-11-22 at 10 23 57 AM

User Impact

None

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

@burakku burakku requested a review from a team as a code owner November 22, 2024 08:13
Copy link

vercel bot commented Nov 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Nov 22, 2024 8:14am

@CLAassistant
Copy link

CLAassistant commented Nov 22, 2024

CLA assistant check
All committers have signed the CLA.

@octavia-squidington-iii octavia-squidington-iii added the CDK Connector Development Kit label Nov 22, 2024
@@ -57,6 +57,8 @@ class DebeziumPropertiesBuilder(private val props: Properties = Properties()) {
with("value.converter.replace.null.with.default", "false")
// Timeout for DebeziumEngine's close() method.
with("debezium.embedded.shutdown.pause.before.interrupt.ms", "10000")
// Unblock CDC syncs by skipping errors caused by unparseable DDLs
with("schema.history.internal.skip.unparseable.ddl", "true")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is indeed the correct Debezium property, but by adding these lines of code here you're setting this property for ALL connectors. Not all connectors maintain a schema history file. That being said, this is just ignored for those connectors, and it seems like this property is named the same way for all those that do maintain a schema history.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a good point, currently do we have a way for all the connectors to share a common set of debezium properties, while allows specific connectors to include extra properties that won't be shared?

@burakku burakku merged commit a1cab9a into master Nov 22, 2024
30 of 31 checks passed
@burakku burakku deleted the wenqi/master branch November 22, 2024 19:03
@theyueli
Copy link
Contributor

@postamar I see this fix is sent to new cdk, so do we also need to bump up the version of the CDK?

@theyueli theyueli changed the title Fix bug #48497 [bulk-extract-cdk] skip errors caused by unparseable DDLs Nov 22, 2024
@burakku burakku restored the wenqi/master branch November 22, 2024 23:52
@burakku burakku deleted the wenqi/master branch November 22, 2024 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CDK Connector Development Kit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants