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

DBZ-2544 Fix test failure - PostgresConnectorIT#customSnapshotterSkipsTablesOnRestart #1854

Merged
merged 2 commits into from Sep 30, 2020

Conversation

Naros
Copy link
Member

@Naros Naros commented Sep 30, 2020

https://issues.redhat.com/browse/DBZ-2544

As some background, I think the underlying problem here is that we previously double dipped on the database check. While locally testing, when the test would fail showed some metadata queries that the connector wasn't issuing but seemed to be coming from the JDBC driver itself. Because of how we asserted the state, I think this is what lead to the inconsistent pass/fail of this test.

This PR instead changes the behavior to rely solely on the Awaitility API call and if that results in a time-out, we fail the test. If that call results in success, that should be sufficient to allow the test to pass without the additional query & assertion check.

@gunnarmorling
Copy link
Member

There's a formatting glitch it seems.

@Naros
Copy link
Member Author

Naros commented Sep 30, 2020

Ah my fault for being too hasted with my fix; it should be fixed now.

@gunnarmorling gunnarmorling merged commit 155dd44 into debezium:master Sep 30, 2020
@gunnarmorling
Copy link
Member

A green one. It feels as if things are getting more stable... Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants