mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-12 04:32:00 +01:00
bea3431ed1
* lib/storage/partition: add check to ensure parts exist on disk If part exists in parts.json but is missing on disk there will be a misleading error similar to "unexpected number of substrings in the part name". This change forces verification of part existence and throws a correct error in case it is missing on disk. Such issue can be result of https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5005 or disk corruption. Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com> * lib/storage/partition: use filepath.Join instead of string concatenation Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com> * lib/storage/partition: add action points for error message Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com> * all: add a check for missing part in lib/mergeset and lib/logstorage --------- Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com> Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com> |
||
---|---|---|
.. | ||
arena.go | ||
block_data_test.go | ||
block_data.go | ||
block_header_test.go | ||
block_header.go | ||
block_search.go | ||
block_stream_merger.go | ||
block_stream_reader.go | ||
block_stream_writer.go | ||
block_test.go | ||
block_timing_test.go | ||
block.go | ||
bloomfilter_test.go | ||
bloomfilter.go | ||
consts.go | ||
datadb_test.go | ||
datadb.go | ||
encoding_test.go | ||
encoding_timing_test.go | ||
encoding.go | ||
filenames.go | ||
filters_test.go | ||
filters.go | ||
hash128_test.go | ||
hash128_timing_test.go | ||
hash128.go | ||
index_block_header_test.go | ||
index_block_header.go | ||
indexdb_test.go | ||
indexdb.go | ||
inmemory_part_test.go | ||
inmemory_part_timing_test.go | ||
inmemory_part.go | ||
log_rows_timing_test.go | ||
log_rows.go | ||
parser_test.go | ||
parser.go | ||
part_header_test.go | ||
part_header.go | ||
part.go | ||
partition_test.go | ||
partition.go | ||
rows_test.go | ||
rows.go | ||
storage_search_test.go | ||
storage_search.go | ||
storage_test.go | ||
storage.go | ||
stream_filter.go | ||
stream_id_test.go | ||
stream_id.go | ||
stream_tags.go | ||
tenant_id_test.go | ||
tenant_id.go | ||
tokenizer_test.go | ||
tokenizer_timing_test.go | ||
tokenizer.go | ||
u128_test.go | ||
u128.go | ||
values_encoder_test.go | ||
values_encoder_timing_test.go | ||
values_encoder.go |