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

Fix panic due to early onEvent Logger call in Zookeeper event handling #1028

Merged
merged 1 commit into from
Feb 4, 2024

Conversation

ytake
Copy link
Contributor

@ytake ytake commented Feb 4, 2024

This commit removes the Logger call from the onEvent method in the Zookeeper event handling code.
Previously, invoking p.cluster.Logger() before the cluster was fully resolved led to a runtime panic error (panic: runtime error: invalid memory address or nil pointer dereference).

This change is a workaround to avoid the immediate crash.

I think you need to refactor the initialization sequence of the "provider" and its dependencies to ensure that the "cluster" is available before any event processing takes place.

@CLAassistant
Copy link

CLAassistant commented Feb 4, 2024

CLA assistant check
All committers have signed the CLA.

@rogeralsing rogeralsing merged commit 41c9dd4 into asynkron:dev Feb 4, 2024
1 of 2 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.

3 participants