We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Type: bug report
Race condition was detected in metric.DefaultMetricSearcher:
metric.DefaultMetricSearcher
WARNING: DATA RACE Read at 0x00c000510f00 by goroutine 59: github.com/alibaba/sentinel-golang/core/log/metric.(*DefaultMetricSearcher).getOffsetStartAndFileIdx() /Users/sczyh30/go/pkg/mod/github.com/alibaba/sentinel-golang@v1.0.3/core/log/metric/searcher.go:101 +0x106 github.com/alibaba/sentinel-golang/core/log/metric.(*DefaultMetricSearcher).searchOffsetAndRead() /Users/sczyh30/go/pkg/mod/github.com/alibaba/sentinel-golang@v1.0.3/core/log/metric/searcher.go:71 +0x12a github.com/alibaba/sentinel-golang/core/log/metric.(*DefaultMetricSearcher).FindByTimeAndResource() /Users/sczyh30/go/pkg/mod/github.com/alibaba/sentinel-golang@v1.0.3/core/log/metric/searcher.go:53 +0xc7 ... Previous write at 0x00c000510f00 by goroutine 31: github.com/alibaba/sentinel-golang/core/log/metric.(*DefaultMetricSearcher).findOffsetToStart() /Users/sczyh30/go/pkg/mod/github.com/alibaba/sentinel-golang@v1.0.3/core/log/metric/searcher.go:165 +0x5ca github.com/alibaba/sentinel-golang/core/log/metric.(*DefaultMetricSearcher).searchOffsetAndRead() /Users/sczyh30/go/pkg/mod/github.com/alibaba/sentinel-golang@v1.0.3/core/log/metric/searcher.go:80 +0x1fd github.com/alibaba/sentinel-golang/core/log/metric.(*DefaultMetricSearcher).FindByTimeAndResource() /Users/sczyh30/go/pkg/mod/github.com/alibaba/sentinel-golang@v1.0.3/core/log/metric/searcher.go:53 +0xc7 ...
No race condition.
Run a demo and invoke the search function of the MetricSearcher concurrently.
Sentinel Go v1.0.3
NONE
The text was updated successfully, but these errors were encountered:
binbin0325
No branches or pull requests
Issue Description
Type: bug report
Describe what happened
Race condition was detected in
metric.DefaultMetricSearcher
:Describe what you expected to happen
No race condition.
How to reproduce it (as minimally and precisely as possible)
Run a demo and invoke the search function of the MetricSearcher concurrently.
Tell us your environment
Sentinel Go v1.0.3
Anything else we need to know?
NONE
The text was updated successfully, but these errors were encountered: