-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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-1857 Support for autorestart for embedded engine #1347
Conversation
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.
@jpechane, thanks; a few questions inline.
@FixFor("DBZ-1857") | ||
// The column used to kill connection is only supported since Postgres version 10 | ||
@SkipWhenDatabaseVersionLessThan(POSTGRES_10) | ||
public void shouldRecoverFromRetriableException() throws Exception { |
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 test fails on CI.
...m-connector-postgres/src/test/java/io/debezium/connector/postgresql/PostgresConnectorIT.java
Show resolved
Hide resolved
debezium-core/src/main/java/io/debezium/connector/common/BaseSourceTask.java
Show resolved
Hide resolved
ec5e07f
to
520ec71
Compare
// WorkerSourceTask calls us immediately after we return the empty list. | ||
// This turns into a throttling so we need to make a pause before we return | ||
// the control back. | ||
Thread.sleep(PAUSE_WHEN_NOT_STARTED); |
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.
Should be Metronome#parker()
.
debezium-embedded/src/main/java/io/debezium/embedded/EmbeddedEngine.java
Show resolved
Hide resolved
Rebased and applied. Thanks, @jpechane. |
https://issues.redhat.com/browse/DBZ-1857