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

Kafka component, data race when running and initializing multiple kafka components concurrently #3557

Open
famarting opened this issue Sep 29, 2024 · 0 comments
Labels
kind/bug Something isn't working

Comments

@famarting
Copy link
Contributor

Expected Behavior

Kafka component supports to run and initialize multiple instances concurrently

Actual Behavior

I was writing some tests using the kafka component and I'm having a data race when running tests in parallel.

The data race is due to this https://github.com/dapr/components-contrib/blob/main/common/component/kafka/kafka.go#L190

the kafka component is overwriting a global sarama client variable, the data race produces when one component is running and using the sarama log and concurrently another kafka component is initializing.

Steps to Reproduce the Problem

Release Note

RELEASE NOTE:

@famarting famarting added the kind/bug Something isn't working label Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant