t8y2/dbx · error
open %s session %d: %w
Error message
open %s session %d: %w
What it means
Panics in the kingbase bench harness when opening session N for one of the benchmark agents fails after the agent process started — connection params (host/port/database/username/password) were rejected. The wrapped error identifies the agent and session; the bench aborts because a session is essential to the comparison.
Source
Thrown at agents/drivers/kingbase-go/bench/agent_compare.go:111
{name: "go-gokb", argv: []string{requiredEnv("GO_AGENT")}},
{name: "jdbc", argv: jdbcAgentCommand(requiredEnv("JDBC_AGENT_JAR"))},
}
encoder := json.NewEncoder(os.Stdout)
running := make([]*runningAgent, 0, len(agents))
for _, candidate := range agents {
process, startup, err := startAgent(candidate.argv)
if err != nil {
panic(fmt.Errorf("start %s: %w", candidate.name, err))
}
params := map[string]any{"host": host, "port": port, "database": database, "username": username, "password": password}
readyRSS := readRSSKB(process.command.Process.Pid)
var oneSessionRSS int64
openStart := time.Now()
for index := 0; index < maxConcurrency; index++ {
request := cloneMap(params)
request["agentSessionId"] = sessionID(index)
if _, err := process.call("open_session", request); err != nil {
panic(fmt.Errorf("open %s session %d: %w", candidate.name, index, err))
}
if index == 0 {
oneSessionRSS = readRSSKB(process.command.Process.Pid)
}
}
openDuration := time.Since(openStart)
running = append(running, &runningAgent{
name: candidate.name, process: process, startup: startup, openSessions: openDuration,
readyRSSKB: readyRSS, oneSessionRSSKB: oneSessionRSS, sessionsRSSKB: readRSSKB(process.command.Process.Pid),
})
}
defer func() {
for _, candidate := range running {
_ = candidate.process.close()
}
}()
for _, concurrency := range concurrencies {
if concurrency > maxConcurrency {View on GitHub (pinned to c0390bff16)
Solutions
- Verify BENCH connection environment variables (host, port, database, credentials) are correct
- Confirm the database server accepts connections from the bench host
- Check the wrapped error for the agent-specific rejection reason
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at agents/drivers/kingbase-go/bench/agent_compare.go:111 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of t8y2/dbx@c0390bff16 (2026-09-05).
Data as JSON: /api/errors/0633ba218cbdee71.
Report an issue: GitHub.