mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-12 20:55:22 +01:00
48a5c4cb01
### Describe Your Changes Fix Date metricid cache consistency under concurrent use. When one goroutine calls Has() and does not find the cache entry in the immutable map it will acquire a lock and check the mutable map. And it is possible that before that lock is acquired, the entry is moved from the mutable map to the immutable map by another goroutine causing a cache miss. The fix is to check the immutable map again once the lock is acquired. ### Checklist The following checks are **mandatory**: - [x ] My change adheres [VictoriaMetrics contributing guidelines](https://docs.victoriametrics.com/contributing/). --------- Signed-off-by: Artem Fetishev <wwctrsrx@gmail.com> Co-authored-by: Nikolay <nik@victoriametrics.com>
26 lines
324 B
Plaintext
26 lines
324 B
Plaintext
/tmp
|
|
/tags
|
|
/pkg
|
|
*.pprof
|
|
/bin
|
|
.idea
|
|
.vscode
|
|
*.test
|
|
*.swp
|
|
/gocache-for-docker
|
|
/victoria-logs-data
|
|
/victoria-metrics-data
|
|
/vmagent-remotewrite-data
|
|
/vmstorage-data
|
|
/vmselect-cache
|
|
/package/temp-deb-*
|
|
/package/temp-rpm-*
|
|
/package/*.deb
|
|
/package/*.rpm
|
|
.DS_store
|
|
Gemfile.lock
|
|
/_site
|
|
_site
|
|
*.tmp
|
|
/docs/.jekyll-metadata
|
|
coverage.txt |