Reporting a bug
How to report a Raft DB bug with the website's form, what to include, how to find the version, collect logs and make a minimal reproduction, and what not to send.
Use the bug report form on the website: /support/report.
The form#
| Field | What to put |
|---|---|
| Title | One line: what goes wrong and where (INSERT ... ON DUPLICATE KEY UPDATE returns error 1062 on a unique index). |
| Description | What you did, what you expected, what happened instead. Say which program: raftdb-server, raftdb-mysql (and the dialect), raftdb-watch, the Studio, a connector (with its language and version). |
| Version | See below. |
| Operating system | Name, version and CPU architecture (for example Windows 11 x86_64, Ubuntu 24.04 x86_64). |
| Steps to reproduce | Numbered steps, as short as you can make them, that someone can run from an empty data directory. |
| Log excerpt | The lines around the problem: standard error of the program, the fatal-error report, or the statement trace. |
| E-mail (optional) | Only if you want an answer. |
What to include#
- The exact version. Any of these:
SELECT VERSION();on the SQL front-end:8.0.36-Raft DBor11.4.13-MariaDB-Raft DBnames the dialect.GET /v1/serverover HTTP: the fieldversion(currently0.0.5) andnode.role.- The name or date of the download you unpacked: Raft DB has no release numbers yet, so always give it.
- The configuration that matters: the output of
raftdb-server --print-config(secrets are hidden) and themysql.confandwatch.confwith passwords removed. State the engine (memoryorlsm),shards, whetherembedis used, the profile, andsync-replicas,groups,controlfor clusters. - A minimal reproduction. Prefer SQL you can paste:
CREATE DATABASE,CREATE TABLE,INSERT, the failing statement. If the same statement behaves differently on a real MySQL or MariaDB, say which version and show both outputs; that is how the project finds compatibility bugs: a script that shows the difference can go straight into the project's tests. - The error: the number, SQLSTATE and text exactly as the client printed them (Error numbers).
- The log:
- The program's standard error or the service journal around the time.
RAFTDB_MYSQL_TRACE=1output for a SQL problem (it logs statements with any passwords in them: remove them).- The fatal-error report if one was written:
<data dir>/reports/<id>.jsonfor the server, the control directory for the watcher, the temporary directory orRAFTDB_ERROR_REPORT_DIRforraftdb-mysql. It holds the component, version, OS, place (file and line), the cleaned message and a stack of function names, and no data (Logs and tracing).
- For a data problem: the table definition (
SHOW CREATE TABLE), a few rows that show it, and whether it happened after a crash, a restart, a checkpoint, a failover or a replica copy. - For a cluster problem: the status JSON of each watcher,
GET /v1/control/stateof each node, the watchers'notify_file, and a timeline (what was killed or stopped, when). - For a performance problem: the statement, the table sizes,
RAFTDB_MYSQL_PROF=1output for it, the hardware, and what you expected (and why: another database's number, with its version and settings). - For a crash or hang: what the program printed, whether it exited, and the time; if it hung, the CPU use of the process and the watcher's report.
What not to send#
- Passwords, tokens,
cluster_secret,admin.password, or a settings file with them.raftdb-watch --check-configprints the passwords it loaded: do not paste its output. - Production data. Reduce the problem to made-up rows.
- The data directory itself. If a developer needs a file, you will be asked, and a log file of a table can be large.
Before you report#
- Check What is not there yet: an error 1235 is a known gap, not a bug (although a request for the feature is welcome).
- Check Error numbers and SQL problems.
- Try the latest download if you can.
- If the problem is a difference from MySQL or MariaDB, check the list of known differences: the server's identity, the system schemas, account names in messages, estimated index cardinality (decision D86).
Security problems#
Do not put a vulnerability in a public report. Use the form's description to say that you have a security issue and nothing more (no details, no exploit), and give an e-mail address so that you can be answered privately. Read Security overview first for what is known and not protected (there is no TLS except on the MySQL, MariaDB and SQL Server client connections, no audit log and no lockout).