VictoriaMetrics/app/vmselect/netstorage
Andrei Baidarov 439d1b932e
app/vmselect: fix panic/incorrect tenant in key
This is a follow-up after 3120dc2
  
- Consistently use key for rollupCache in multitenant mode cache keys use different authTokens. Previously it could lead to panic in rare cases when cache state was inconsistent. 
- Do not share `err` variable across goroutines for `processBlock` function. It could lead to data races. 

Related issue https://github.com/VictoriaMetrics/VictoriaMetrics/issues/7549
---------
Signed-off-by: Andrei Baidarov <abaidarov@yandex.ru>
Co-authored-by: f41gh7 <nik@victoriametrics.com>
2024-11-25 11:47:24 +01:00
..
netstorage.go app/vmselect: fix panic/incorrect tenant in key 2024-11-25 11:47:24 +01:00
netstorage_test.go app/vmselect/netstorage: eliminate memory allocation for sortBlocksHeap arg when calling mergeSortBlocks() 2023-01-09 21:29:01 -08:00
netstorage_timing_test.go app/vmselect/netstorage: eliminate memory allocation for sortBlocksHeap arg when calling mergeSortBlocks() 2023-01-09 21:29:01 -08:00
tenant_cache.go vmselect: add support of multi-tenant queries (#6346) 2024-10-01 16:37:18 +02:00
tenant_cache_test.go vmselect: add support of multi-tenant queries (#6346) 2024-10-01 16:37:18 +02:00
tenant_filters.go vmselect: add support of multi-tenant queries (#6346) 2024-10-01 16:37:18 +02:00
tenant_filters_test.go vmselect: add support of multi-tenant queries (#6346) 2024-10-01 16:37:18 +02:00
tmp_blocks_file.go app/vmselect:add command-line flag -search.inmemoryBufSizeBytes (#6869) 2024-08-26 14:37:45 +02:00
tmp_blocks_file_test.go app/{vminsert,vmselect}: limit the access to storageNodes to getStorageNodesBucket and setStorageNodesBucket functions 2022-10-28 11:41:55 +03:00