Skip to content

fix(shard-distributor): add context timeout into the shard rebalancing loop#7514

Merged
arzonus merged 2 commits intocadence-workflow:masterfrom
arzonus:CDNC-16999-sd-context-in-rebalancing-loop
Dec 8, 2025
Merged

fix(shard-distributor): add context timeout into the shard rebalancing loop#7514
arzonus merged 2 commits intocadence-workflow:masterfrom
arzonus:CDNC-16999-sd-context-in-rebalancing-loop

Conversation

@arzonus
Copy link
Contributor

@arzonus arzonus commented Dec 8, 2025

What changed?

  • context.WithTimeout has been added to the rebalancing loop. Default timeout is 1 second

Why?

  • We observed long runs in the rebalancing loop caused by the storage operation processing with delays. To ensure that a rebalancing is not stuck by the long running operations, context.WithTimeout has been introduced.

How did you test it?

  • Unit tests

Potential risks

  • In case of the big number of shards, the rebalancing loop is about to be stuck due to unavailability to at least load the whole state.

Release notes

Documentation Changes

@arzonus arzonus enabled auto-merge (squash) December 8, 2025 11:55
@arzonus arzonus merged commit 759b6cf into cadence-workflow:master Dec 8, 2025
41 checks passed
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