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

CC-29764 Add timeout to sink put cycle #801

Merged
merged 3 commits into from
Dec 1, 2024
Merged

CC-29764 Add timeout to sink put cycle #801

merged 3 commits into from
Dec 1, 2024

Conversation

subhashiyer9
Copy link
Member

@subhashiyer9 subhashiyer9 commented Nov 28, 2024

Problem

This PR adds a time out to the put loop to add a limit on maximum amount of time a task can spend in the poll cycle
If the task spends significant amount of time in poll loop, it will likely become a zombie.
Hence, adding a timeout can prevent a zombie task from processing the files

Solution

Does this solution apply anywhere else?
  • yes
  • no
If yes, where?

Test Strategy

Testing done:
  • Unit tests
  • Integration tests
  • System tests
  • Manual tests

Manually tested by adding random sleep in the task and ensuring that the task reaches deadline in such cases

Release Plan

@confluent-cla-assistant
Copy link

🎉 All Contributor License Agreements have been signed. Ready to merge.
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

@subhashiyer9 subhashiyer9 marked this pull request as ready for review November 29, 2024 04:03
@subhashiyer9 subhashiyer9 requested a review from a team as a code owner November 29, 2024 04:03
}

private void resume() {
log.trace("Resuming writer for topic-partition '{}'", tp);
context.resume(tp);
isPaused = true;
Copy link
Member

Choose a reason for hiding this comment

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

This should be false right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for pointing out. I have fixed it

@subhashiyer9 subhashiyer9 merged commit cb37816 into 10.0.x Dec 1, 2024
2 checks passed
@subhashiyer9 subhashiyer9 deleted the CC-29764-1 branch December 1, 2024 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants