-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
MSSQL and debezium improvements #44759
MSSQL and debezium improvements #44759
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -181,7 +181,7 @@ class DebeziumRecordIterator<T>( | |||
hasSnapshotFinished = !changeEventWithMetadata.isSnapshotEvent | |||
|
|||
if (isEventLogged) { | |||
val source: JsonNode? = changeEventWithMetadata.eventValueAsJson()["source"] | |||
val source: JsonNode? = changeEventWithMetadata.eventValueAsJson?.get("source") |
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.
kotlin doesn't have ?[]
unfortunately
…entexception-argument-content-is-null-after-adding-primary-key
@evantahler I'd like to add a troubleshooting doc for mssql, similarly to what we have in other connectors (e.g). |
@rodireich - you've got to add the new doc to the sidebar nav as well. I can help if you get stuck! |
…entexception-argument-content-is-null-after-adding-primary-key
…entexception-argument-content-is-null-after-adding-primary-key
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.
My only concern here is the potential for log spam, LGTM otherwise.
event | ||
.value() | ||
?.let { Jsons.deserialize(it) } | ||
.also { it ?: LOGGER.warn { "Event value is null $event" } } |
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.
This could spam the logs.
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.
If we get to the situation where value or key are null then something is seriously misoncifugred, as was the case on the oncall ticket.
I'd rather know what the malformed debezium event looks like. I couldn't figure out the root cause until I was able to get to this information.
...es/src/main/kotlin/io/airbyte/cdk/integrations/debezium/internals/ChangeEventWithMetadata.kt
Outdated
Show resolved
Hide resolved
...es/src/main/kotlin/io/airbyte/cdk/integrations/debezium/internals/ChangeEventWithMetadata.kt
Show resolved
Hide resolved
...ces/src/main/kotlin/io/airbyte/cdk/integrations/debezium/internals/DebeziumRecordIterator.kt
Show resolved
Hide resolved
...src/test/kotlin/io/airbyte/cdk/integrations/debezium/internals/DebeziumRecordIteratorTest.kt
Show resolved
Hide resolved
…entexception-argument-content-is-null-after-adding-primary-key
/publish-java-cdk dry-run=true
|
/publish-java-cdk
|
What
A few issues in debezium and mssql were discovered as a result of https://github.com/airbytehq/oncall/issues/6192 .
op: r
which is can only be part of an initial snapshot.This PR deals with the discoveries and adds a new troubleshooting page for the root cause of the oncall issue.