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

Enable graceful shutdown of replication task fetcher by default #6571

Conversation

taylanisikdemir
Copy link
Member

@taylanisikdemir taylanisikdemir commented Dec 18, 2024

What changed?
Replication task fetcher is not respecting shut down signal because it uses background context. This causes integration test flakiness (example). I have fixed the shutdown logic of this component last year in #5544 but it was behind a feature flag. Removing that flag and enabling the correct behavior by default.
When Stop() is called it will cancel internal context and rpc will terminate early. There's no side effect on replication ack levels.

Why?
Better shutdown handling and reduce test flakyness.

How did you test it?
unit and integration tests

@taylanisikdemir taylanisikdemir merged commit 6b23320 into cadence-workflow:master Dec 19, 2024
17 checks passed
@taylanisikdemir taylanisikdemir deleted the taylan/replication_task_fetcher_shutdown_fix branch December 19, 2024 05:06
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