Troubleshooting

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#

FieldWhat to put
TitleOne line: what goes wrong and where (INSERT ... ON DUPLICATE KEY UPDATE returns error 1062 on a unique index).
DescriptionWhat 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).
VersionSee below.
Operating systemName, version and CPU architecture (for example Windows 11 x86_64, Ubuntu 24.04 x86_64).
Steps to reproduceNumbered steps, as short as you can make them, that someone can run from an empty data directory.
Log excerptThe 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#

  1. The exact version. Any of these:
    • SELECT VERSION(); on the SQL front-end: 8.0.36-Raft DB or 11.4.13-MariaDB-Raft DB names the dialect.
    • GET /v1/server over HTTP: the field version (currently 0.0.5) and node.role.
    • The name or date of the download you unpacked: Raft DB has no release numbers yet, so always give it.
  2. The configuration that matters: the output of raftdb-server --print-config (secrets are hidden) and the mysql.conf and watch.conf with passwords removed. State the engine (memory or lsm), shards, whether embed is used, the profile, and sync-replicas, groups, control for clusters.
  3. 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.
  4. The error: the number, SQLSTATE and text exactly as the client printed them (Error numbers).
  5. The log:
    • The program's standard error or the service journal around the time.
    • RAFTDB_MYSQL_TRACE=1 output 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>.json for the server, the control directory for the watcher, the temporary directory or RAFTDB_ERROR_REPORT_DIR for raftdb-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).
  6. 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.
  7. For a cluster problem: the status JSON of each watcher, GET /v1/control/state of each node, the watchers' notify_file, and a timeline (what was killed or stopped, when).
  8. For a performance problem: the statement, the table sizes, RAFTDB_MYSQL_PROF=1 output for it, the hardware, and what you expected (and why: another database's number, with its version and settings).
  9. 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-config prints 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#

  1. Check What is not there yet: an error 1235 is a known gap, not a bug (although a request for the feature is welcome).
  2. Check Error numbers and SQL problems.
  3. Try the latest download if you can.
  4. 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).

See also#