skywalking icon indicating copy to clipboard operation
skywalking copied to clipboard

[BanyanDB] Inverted Index Metric Data Race

Open hanahmily opened this issue 5 months ago • 0 comments

Search before asking

  • [X] 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 avatar Sep 24 '24 05:09 hanahmily