mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
bdc0e688e8
### Describe Your Changes `Storage.AddRows()` returns an error only in one case: when `Storage.updatePerDateData()` fails to unmarshal a `metricNameRaw`. But the same error is treated as a warning when it happens inside `Storage.add()` or returned by `Storage.prefillNextIndexDB()`. This commit fixes this inconsistency by treating the error returned by `Storage.updatePerDateData()` as a warning as well. As a result `Storage.add()` does not need a return value anymore and so doesn't `Storage.AddRows()`. Additionally, this commit adds a unit test that checks all cases that result in a row not being added to the storage. --------- Signed-off-by: Artem Fetishev <wwctrsrx@gmail.com> Co-authored-by: Nikolay <nik@victoriametrics.com> |
||
---|---|---|
.. | ||
block.go | ||
block_header.go | ||
block_header_test.go | ||
block_stream_merger.go | ||
block_stream_reader.go | ||
block_stream_reader_test.go | ||
block_stream_reader_timing_test.go | ||
block_stream_writer.go | ||
block_stream_writer_timing_test.go | ||
block_test.go | ||
dedup.go | ||
dedup_test.go | ||
dedup_timing_test.go | ||
filenames.go | ||
index_db.go | ||
index_db_test.go | ||
index_db_timing_test.go | ||
inmemory_part.go | ||
inmemory_part_test.go | ||
inmemory_part_timing_test.go | ||
merge.go | ||
merge_test.go | ||
merge_timing_test.go | ||
metaindex_row.go | ||
metaindex_row_test.go | ||
metric_name.go | ||
metric_name_test.go | ||
part.go | ||
part_header.go | ||
part_search.go | ||
part_search_test.go | ||
part_search_timing_test.go | ||
partition.go | ||
partition_search.go | ||
partition_search_test.go | ||
partition_test.go | ||
raw_block.go | ||
raw_row.go | ||
search.go | ||
search_test.go | ||
storage.go | ||
storage_test.go | ||
storage_timing_test.go | ||
table.go | ||
table_search.go | ||
table_search_test.go | ||
table_search_timing_test.go | ||
table_test.go | ||
table_timing_test.go | ||
tag_filters.go | ||
tag_filters_test.go | ||
tag_filters_timing_test.go | ||
time.go | ||
time_test.go | ||
tsid.go | ||
tsid_test.go |