{"record":{"id":"de70056c711a9aff","repo":"t8y2/dbx","slug":"start-s-w","errorCode":null,"errorMessage":"start %s: %w","messagePattern":"start (.+?): %w","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"agents/drivers/kingbase-go/bench/agent_compare.go","lineNumber":101,"sourceCode":"\tconcurrencies := envInts(\"BENCH_CONCURRENCIES\", []int{1, 8, 32})\n\tbenchmarkSQL := envOr(\"BENCH_SQL\", \"SELECT 1\")\n\tbenchmarkMaxRows := envInt(\"BENCH_MAX_ROWS\", 1)\n\tworkload := envOr(\"BENCH_WORKLOAD\", \"agent-select-literal\")\n\tsampleMemory := os.Getenv(\"BENCH_SAMPLE_MEMORY\") == \"1\"\n\n\tagents := []struct {\n\t\tname string\n\t\targv []string\n\t}{\n\t\t{name: \"go-gokb\", argv: []string{requiredEnv(\"GO_AGENT\")}},\n\t\t{name: \"jdbc\", argv: jdbcAgentCommand(requiredEnv(\"JDBC_AGENT_JAR\"))},\n\t}\n\tencoder := json.NewEncoder(os.Stdout)\n\trunning := make([]*runningAgent, 0, len(agents))\n\tfor _, candidate := range agents {\n\t\tprocess, startup, err := startAgent(candidate.argv)\n\t\tif err != nil {\n\t\t\tpanic(fmt.Errorf(\"start %s: %w\", candidate.name, err))\n\t\t}\n\t\tparams := map[string]any{\"host\": host, \"port\": port, \"database\": database, \"username\": username, \"password\": password}\n\t\treadyRSS := readRSSKB(process.command.Process.Pid)\n\t\tvar oneSessionRSS int64\n\t\topenStart := time.Now()\n\t\tfor index := 0; index < maxConcurrency; index++ {\n\t\t\trequest := cloneMap(params)\n\t\t\trequest[\"agentSessionId\"] = sessionID(index)\n\t\t\tif _, err := process.call(\"open_session\", request); err != nil {\n\t\t\t\tpanic(fmt.Errorf(\"open %s session %d: %w\", candidate.name, index, err))\n\t\t\t}\n\t\t\tif index == 0 {\n\t\t\t\toneSessionRSS = readRSSKB(process.command.Process.Pid)\n\t\t\t}\n\t\t}\n\t\topenDuration := time.Since(openStart)\n\t\trunning = append(running, &runningAgent{\n\t\t\tname: candidate.name, process: process, startup: startup, openSessions: openDuration,","sourceCodeStart":83,"sourceCodeEnd":119,"githubUrl":"https://github.com/t8y2/dbx/blob/c0390bff16418b651f4728520d99adf8ce48829a/agents/drivers/kingbase-go/bench/agent_compare.go#L83-L119","documentation":"Panics in the kingbase bench harness (agent_compare.go) when starting one of the benchmark agent processes (go-gokb or jdbc via startAgent) fails — e.g. the GO_AGENT or JDBC_AGENT_JAR environment variable points to a missing/non-executable path. The %s names which agent failed to launch; this is a bench-setup failure, not a runtime recoverable error.","triggerScenarios":"Thrown at agents/drivers/kingbase-go/bench/agent_compare.go:101 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the GO_AGENT / JDBC_AGENT_JAR env vars point to existing, executable artifacts","Build the agents before running the bench (the wrapped error names the exec failure)","Verify execute permissions and working directory"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c0390bff16418b651f4728520d99adf8ce48829a","analyzedAt":"2026-09-05T23:05:10.900Z","contentChangedAt":"2026-09-05T23:05:10.900Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}