{"record":{"id":"448c6560459f6663","repo":"gastownhall/beads","slug":"dolt-server-performance-diagnostics-do-not-apply-t","errorCode":null,"errorMessage":"Dolt server performance diagnostics do not apply to the configured backend %q","messagePattern":"Dolt server performance diagnostics do not apply to the configured backend %q","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/bd/doctor/perf_dolt.go","lineNumber":52,"sourceCode":"\tConnectionTime   int64 // Time to establish connection\n\tReadyWorkTime    int64 // Time for GetReadyWork equivalent\n\tListOpenTime     int64 // Time to list open issues\n\tShowIssueTime    int64 // Time to get single issue\n\tComplexQueryTime int64 // Time for complex filter query\n\tCommitLogTime    int64 // Time to query dolt_log\n\n\t// Profile file path if profiling was enabled\n\tProfilePath string\n}\n\n// RunDoltPerformanceDiagnostics runs performance diagnostics for Dolt backend\nfunc RunDoltPerformanceDiagnostics(path string, enableProfiling bool) (*DoltPerfMetrics, error) {\n\tbeadsDir := ResolveBeadsDirForRepo(path)\n\n\t// Verify this is a Dolt backend\n\tif !IsDoltBackend(beadsDir) {\n\t\tbackend, _ := getBackendAndBeadsDir(path)\n\t\treturn nil, fmt.Errorf(\"Dolt server performance diagnostics do not apply to the configured backend %q\", backend)\n\t}\n\n\tmetrics := &DoltPerfMetrics{\n\t\tPlatform:  fmt.Sprintf(\"%s/%s\", runtime.GOOS, runtime.GOARCH),\n\t\tGoVersion: runtime.Version(),\n\t}\n\n\t// Resolve server config (handles standalone ephemeral ports)\n\tdsCfg := doltserver.DefaultConfig(beadsDir)\n\n\t// Check server status\n\tdoltDir := getDatabasePath(beadsDir)\n\tserverRunning := isDoltServerRunning(dsCfg.Host, dsCfg.Port)\n\tif serverRunning {\n\t\tmetrics.ServerStatus = \"running\"\n\t} else {\n\t\tmetrics.ServerStatus = \"not running\"\n\t}","sourceCodeStart":34,"sourceCodeEnd":70,"githubUrl":"https://github.com/gastownhall/beads/blob/71377f276968b452ee607177637970a4ff888584/cmd/bd/doctor/perf_dolt.go#L34-L70","documentation":"RunDoltPerformanceDiagnostics only applies to Dolt-backed repositories. It checks IsDoltBackend(beadsDir); if false it reports the backend actually configured by getBackendAndBeadsDir so the user knows Dolt server diagnostics are inapplicable.","triggerScenarios":"Calling RunDoltPerformanceDiagnostics (directly or via RunPerformanceDiagnostics/CheckDoltPerformance) on a repo whose config selects a non-Dolt backend (e.g. jsonl, sqlite) or an unknown backend value.","commonSituations":"Backend switched in config.json but stale tooling still invokes Dolt checks; running the same doctor command across repos with different backends; misconfigured or missing backend key defaulting away from Dolt.","solutions":["Switch the repository to the Dolt backend ('bd init --backend dolt' or update config) if Dolt diagnostics are wanted","Run backend-appropriate diagnostics instead of Dolt perf diagnostics","Inspect the quoted backend name in the message and correct the config typo"],"exampleFix":"// before\n_, err := RunDoltPerformanceDiagnostics(path, true)\n// after\nif IsDoltBackend(ResolveBeadsDirForRepo(path)) {\n    _, err := RunDoltPerformanceDiagnostics(path, true)\n}","handlingStrategy":"validation","validationCode":"if !IsDoltBackend(ResolveBeadsDirForRepo(repo)) {\n    return fmt.Errorf(\"repo %s is not Dolt-backed; skip Dolt perf diagnostics\", repo)\n}\n_, err := RunDoltPerformanceDiagnostics(repo, true)","typeGuard":null,"tryCatchPattern":"if err != nil && strings.Contains(err.Error(), \"do not apply to the configured backend\") {\n    // route to the appropriate backend's diagnostics\n}","preventionTips":["Branch diagnostics by configured backend name before calling","Keep backend config (config.json) consistent across CI jobs","Document which doctor checks require the Dolt backend"],"tags":["beads","dolt","backend-mismatch","doctor"],"backgroundTag":"backend-not-supported","analyzedSha":"71377f276968b452ee607177637970a4ff888584","analyzedAt":"2026-08-30T18:55:39.744Z","schemaVersion":2},"datasetVersion":"2026-08-30T23:17:21.991Z"}