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

[BanyanDB] Inverted Index Metric Data Race #12637

Open
2 of 3 tasks
hanahmily opened this issue Sep 24, 2024 · 0 comments
Open
2 of 3 tasks

[BanyanDB] Inverted Index Metric Data Race #12637

hanahmily opened this issue Sep 24, 2024 · 0 comments
Labels
bug Something isn't working and you are sure it's a bug! database BanyanDB - SkyWalking native database

Comments

@hanahmily
Copy link
Contributor

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Description

The stat object provided by the inverted index metrics is not thread-safe. Concurrent reading and updating of the object can lead to data race issues.

We need to modify the bluge.Status() method to access metrics using atomic operations. Since bluge is not mentioned, we will have to create a new branch in our repository to maintain this library.

Use case

No response

Related issues

No response

Are you willing to submit a pull request to implement this on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

@hanahmily hanahmily added the bug Something isn't working and you are sure it's a bug! label Sep 24, 2024
@hanahmily hanahmily added this to the BanyanDB - 0.8.0 milestone Sep 24, 2024
@hanahmily hanahmily added the database BanyanDB - SkyWalking native database label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working and you are sure it's a bug! database BanyanDB - SkyWalking native database
Projects
None yet
Development

No branches or pull requests

1 participant