dolthub / dolthub/dolt

Track client-originated query errors separately from server errors in sql-server logs

Open
#10,896 0 comments 0 reactions 0 assignees View on GitHub
bad error message enhancement
Dominant language
Go
Stars
24.4k
Forks
873
Avg merge
1d 5h
Merged PRs (30d)
108

Description

Currently, errors from bad or invalid client queries are logged at the same level as real server errors in `dolt sql-server`. This makes log-based alerting noisy. A client sending malformed queries can fill disk with errors that operators cannot act on.

Common examples of client errors that should not appear as server errors:
```
CALL DOLT_COMMIT('-m', 'msg') -- with nothing staged
CALL DOLT_BRANCH('existing-branch') -- branch already exists
-- etc
```

The fix belongs in GMS. MySQL likely has precedent here worth checking. The goal is that operators running a sql-server only see actionable server errors by default; client errors should be suppressed or logged at a lower level, with an opt-in mode for debugging.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.