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

KAFKA-9472: Remove deleted Connect tasks from status store #8118

Merged
merged 4 commits into from May 25, 2020

Conversation

C0urante
Copy link
Contributor

@C0urante C0urante commented Feb 14, 2020

Jira

Although the statuses for tasks are removed from the status store when their connector is deleted, their statuses are not removed when only the task is deleted, which happens in the case that the number of tasks for a connector is reduced.

These changes add logic for deleting the statuses for those tasks from the status store whenever a rebalance has completed and the leader of a distributed cluster has detected that there are recently-deleted tasks. Standalone is also updated to accomplish this.

Unit tests for the DistributedHerder and StandaloneHerder classes are updated, and an integration test has been added.

@C0urante
Copy link
Contributor Author

C0urante commented Mar 2, 2020

@ncliang @gharris1727, would either you mind taking a look when you have a chance?

Copy link
Contributor

@ncliang ncliang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very concise change. Just one question about the integration test, otherwise LGTM.

@C0urante
Copy link
Contributor Author

C0urante commented Mar 2, 2020

Thanks for the review, @ncliang!

@rhauch @kkonstantine would you mind taking a look when you have a chance?

@kkonstantine
Copy link
Contributor

ok to test

@kkonstantine
Copy link
Contributor

retest this please

Copy link
Contributor

@kkonstantine kkonstantine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks @C0urante.
One comment on the javadoc, aiming to keep it similar to the other javadocs.

@kkonstantine
Copy link
Contributor

ok to test

@kkonstantine
Copy link
Contributor

retest this please

@kkonstantine
Copy link
Contributor

jdk11 succeeded, and previously jdk8
The rest of the failures are flaky.

Copy link
Contributor

@kkonstantine kkonstantine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kkonstantine kkonstantine changed the title KAFKA-9472: Remove deleted tasks from status store KAFKA-9472: Remove deleted Connect tasks from status store May 25, 2020
@kkonstantine kkonstantine merged commit de6468a into apache:trunk May 25, 2020
kkonstantine pushed a commit that referenced this pull request May 25, 2020
Although the statuses for tasks are removed from the status store when their connector is deleted, their statuses are not removed when only the task is deleted, which happens in the case that the number of tasks for a connector is reduced.

This commit adds logic for deleting the statuses for those tasks from the status store whenever a rebalance has completed and the leader of a distributed cluster has detected that there are recently-deleted tasks. Standalone is also updated to accomplish this.

Unit tests for the `DistributedHerder` and `StandaloneHerder` classes are updated and an integration test has been added.

Reviewers: Nigel Liang <nigel@nigelliang.com>, Konstantine Karantasis <konstantine@confluent.io>
kkonstantine pushed a commit that referenced this pull request May 25, 2020
Although the statuses for tasks are removed from the status store when their connector is deleted, their statuses are not removed when only the task is deleted, which happens in the case that the number of tasks for a connector is reduced.

This commit adds logic for deleting the statuses for those tasks from the status store whenever a rebalance has completed and the leader of a distributed cluster has detected that there are recently-deleted tasks. Standalone is also updated to accomplish this.

Unit tests for the `DistributedHerder` and `StandaloneHerder` classes are updated and an integration test has been added.

Reviewers: Nigel Liang <nigel@nigelliang.com>, Konstantine Karantasis <konstantine@confluent.io>
kkonstantine pushed a commit that referenced this pull request May 25, 2020
Although the statuses for tasks are removed from the status store when their connector is deleted, their statuses are not removed when only the task is deleted, which happens in the case that the number of tasks for a connector is reduced.

This commit adds logic for deleting the statuses for those tasks from the status store whenever a rebalance has completed and the leader of a distributed cluster has detected that there are recently-deleted tasks. Standalone is also updated to accomplish this.

Unit tests for the `DistributedHerder` and `StandaloneHerder` classes are updated and an integration test has been added.

Reviewers: Nigel Liang <nigel@nigelliang.com>, Konstantine Karantasis <konstantine@confluent.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants