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

hotfix: rebalance should not shut down processor #366

Merged
merged 1 commit into from
Dec 7, 2021

Conversation

frairon
Copy link
Contributor

@frairon frairon commented Dec 7, 2021

No description provided.

@@ -363,7 +363,7 @@ func (g *Processor) rebalanceLoop(ctx context.Context) (rerr error) {

select {
case <-time.After(5 * time.Second):
case <-sessionCtx.Done():
case <-ctx.Done():
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using the wrong context was shutting down the processor on eveyr rebalance, so there was essentially no rebalance.

@frairon frairon merged commit eba133e into master Dec 7, 2021
@frairon frairon deleted the hotfix-processor-rebalance branch December 7, 2021 08:13
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.

None yet

2 participants