VictoriaMetrics/lib/logstorage/filenames.go
Aliaksandr Valialkin f9d86a913c
lib/logstorage: do not persist streamIDCache, since it may go out of sync with partition directories, which can be changed manually between VictoriaLogs restarts
Partition directories can be manually deleted and copied from another sources such as backups or other VitoriaLogs instances.
In this case the persisted cache becomes out of sync with partitions. This can result in missing index entries
during data ingestion or in incorrect results during querying. So it is better to do not persist caches.
This shouldn't hurt VictoriaLogs performance just after the restart too much, since its caches usually contain
small amounts of data, which can be quickly re-populated from the persisted data.

(cherry picked from commit 8aa144fa74)
2024-10-18 11:42:16 +02:00

24 lines
771 B
Go

package logstorage
const (
columnNamesFilename = "column_names.bin"
metaindexFilename = "metaindex.bin"
indexFilename = "index.bin"
columnsHeaderIndexFilename = "columns_header_index.bin"
columnsHeaderFilename = "columns_header.bin"
timestampsFilename = "timestamps.bin"
oldValuesFilename = "field_values.bin"
oldBloomFilename = "field_bloom.bin"
valuesFilename = "values.bin"
bloomFilename = "bloom.bin"
messageValuesFilename = "message_values.bin"
messageBloomFilename = "message_bloom.bin"
metadataFilename = "metadata.json"
partsFilename = "parts.json"
indexdbDirname = "indexdb"
datadbDirname = "datadb"
partitionsDirname = "partitions"
)