{"record":{"id":"fb7f5cdb0b5aa35f","repo":"weaviate/weaviate","slug":"parse-start-timestamp-from-s","errorCode":null,"errorMessage":"parse start timestamp from %s","messagePattern":"parse start timestamp from (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"adapters/repos/db/vector/hnsw/compact/file_discovery.go","lineNumber":223,"sourceCode":"\t\tinfo.Type = FileTypeCondensed\n\t\tbaseName = strings.TrimSuffix(name, suffixCondensed)\n\tcase strings.HasSuffix(name, suffixSorted):\n\t\tinfo.Type = FileTypeSorted\n\t\tbaseName = strings.TrimSuffix(name, suffixSorted)\n\tcase strings.HasSuffix(name, suffixSnapshot):\n\t\tinfo.Type = FileTypeSnapshot\n\t\tbaseName = strings.TrimSuffix(name, suffixSnapshot)\n\tdefault:\n\t\tinfo.Type = FileTypeRaw\n\t}\n\n\t// Parse timestamp(s) from base name\n\t// Format: {timestamp} or {start}_{end}\n\tif start, end, ok := strings.Cut(baseName, \"_\"); ok {\n\t\t// Merged range format: {start}_{end}\n\t\tstartTS, err := strconv.ParseInt(start, 10, 64)\n\t\tif err != nil {\n\t\t\treturn FileInfo{}, errors.Wrapf(err, \"parse start timestamp from %s\", name)\n\t\t}\n\n\t\tendTS, err := strconv.ParseInt(end, 10, 64)\n\t\tif err != nil {\n\t\t\treturn FileInfo{}, errors.Wrapf(err, \"parse end timestamp from %s\", name)\n\t\t}\n\n\t\tinfo.StartTS = startTS\n\t\tinfo.EndTS = endTS\n\t} else {\n\t\t// Single timestamp format\n\t\tts, err := strconv.ParseInt(baseName, 10, 64)\n\t\tif err != nil {\n\t\t\treturn FileInfo{}, errors.Wrapf(err, \"parse timestamp from %s\", name)\n\t\t}\n\n\t\tinfo.StartTS = ts\n\t\tinfo.EndTS = ts","sourceCodeStart":205,"sourceCodeEnd":241,"githubUrl":"https://github.com/weaviate/weaviate/blob/75aa4b6d11f8818305aafd4440b4e32794f7ca04/adapters/repos/db/vector/hnsw/compact/file_discovery.go#L205-L241","documentation":"Parsing the start timestamp of a merged-range commit log filename failed in parseFilename. The name matched a known suffix and contains an underscore, so it was treated as '{start}_{end}', but the part before '_' is not a valid base-10 integer. This indicates an unexpected/foreign file in the directory rather than a timestamp the writer itself produced.","triggerScenarios":"Thrown at adapters/repos/db/vector/hnsw/compact/file_discovery.go:223 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Move or remove the non-Weaviate file from the commit log directory","Check for hand-edited or restored-with-rename commit log files and correct their names to {start}_{end}{suffix}","If Weaviate itself produced the name, capture it and report — writers only emit valid timestamps"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"75aa4b6d11f8818305aafd4440b4e32794f7ca04","analyzedAt":"2026-09-04T14:58:20.392Z","contentChangedAt":"2026-09-04T14:58:20.392Z","schemaVersion":2},"datasetVersion":"2026-09-11T21:17:09.523Z"}