-
Notifications
You must be signed in to change notification settings - Fork 487
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 on subscribeTopics #3558
Comments
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue, help wanted or triaged/resolved. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions. |
bump |
Expected Behavior
the variable subscribeTopics here https://github.com/dapr/components-contrib/blob/main/common/component/kafka/kafka.go#L50C2-L50C17 can be concurrently accessed and in some scenarios is not protected against data races
Here https://github.com/dapr/components-contrib/blob/main/common/component/kafka/consumer.go#L247 and here https://github.com/dapr/components-contrib/blob/main/common/component/kafka/consumer.go#L236
the subscribeLock https://github.com/dapr/components-contrib/blob/main/common/component/kafka/kafka.go#L51 should be used to protect the concurrent usage of the subscribeTopics map
Actual Behavior
Steps to Reproduce the Problem
Release Note
RELEASE NOTE:
The text was updated successfully, but these errors were encountered: