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

Fix task state check in connector integration tests #426

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,8 @@ void shouldRestartConnector() throws InterruptedException {
.spec(Topic.TopicSpec.builder()
.partitions(3)
.replicationFactor(1)
.configs(Map.of("cleanup.policy", "delete",
.configs(Map.of(
"cleanup.policy", "delete",
"min.insync.replicas", "1",
"retention.ms", "60000"))
.build())
Expand Down Expand Up @@ -449,7 +450,6 @@ void shouldRestartConnector() throws InterruptedException {
.body(connector));

forceConnectorSynchronization();
waitForConnectorAndTasksToBeInState("ns1-co1", Connector.TaskState.RUNNING);

ChangeConnectorState restartState = ChangeConnectorState.builder()
.metadata(Metadata.builder()
Expand All @@ -469,6 +469,8 @@ void shouldRestartConnector() throws InterruptedException {

assertEquals(HttpStatus.OK, restartResponse.status());

waitForConnectorAndTasksToBeInState("ns1-co1", Connector.TaskState.RUNNING);

ConnectorStateInfo actual = connectClient
.toBlocking()
.retrieve(HttpRequest.GET("/connectors/ns1-co1/status"), ConnectorStateInfo.class);
Expand Down