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

Update root partition to refresh non-root partition on start #6527

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

Shaddoll
Copy link
Member

What changed?
Update root partition to refresh non-root partition on start

Why?
If root partition is stopped while it's trying to send notifications about an update to non-root partitions, some partitions may not receive the notification. In this case, update root partition to send notification on start so that they can receive the notification.

How did you test it?
Unit tests

Potential risks

Release notes

Documentation Changes

c.stopWG.Add(1)
go func() {
defer c.stopWG.Done()
c.notifyPartitionConfig(context.Background(), *c.partitionConfig, int(c.partitionConfig.NumReadPartitions))
Copy link
Member

Choose a reason for hiding this comment

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

nit: we should add a ctx and cancelFn pair to tasklist manager to better respond to shutdown events and avoid using background context for this kind of background stuff

@Shaddoll Shaddoll merged commit 34a6db7 into cadence-workflow:master Nov 27, 2024
17 checks passed
@Shaddoll Shaddoll deleted the tl branch November 27, 2024 19:47
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