-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
No error on null key [HZ-2086] #23768
No error on null key [HZ-2086] #23768
Conversation
run-cdc-debezium-tests |
.debezium("postgres", PostgresConnector.class) | ||
.setProperty("database.server.name", "dbserver1") | ||
.setProperty("database.hostname", container.getHost()) | ||
.setProperty("database.port", Integer.toString(container.getMappedPort(POSTGRESQL_PORT))) |
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.
You can use container.getFirstMappedPort() instead of container.getMappedPort()
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 can, but I think it's more explicit this way - I guess it's personal preference
try (Connection connection = getPostgreSqlConnection(container.getJdbcUrl(), container.getUsername(), | ||
container.getPassword())) { | ||
connection.setSchema("inventory"); | ||
Statement statement = connection.createStatement(); |
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.
Statement should be closed.
try (Statement statement = connection.createStatement()) {...}
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.
Good catch! c63631c
Debezium relaxed the requirement for keys - it can be null now. In such cases, do not throw an exception.
Fixes #23655
Breaking changes (list specific methods/types/messages):
ChangeRecord#key()
is now@Nullable
, was@Nonnull
Checklist:
Team:
,Type:
,Source:
,Module:
) and Milestone setAdd to Release Notes
orNot Release Notes content
set