a843f0a1a3
CI / test (push) Has been cancelled
CI / raft-e2e (push) Has been cancelled
CI / verify (push) Has been cancelled
Clients CI / build-server (push) Has been cancelled
Clients CI / test-python (push) Has been cancelled
Clients CI / test-javascript (push) Has been cancelled
Clients CI / test-nim (push) Has been cancelled
Clients CI / test-rust (push) Has been cancelled
4.1 KiB
4.1 KiB
Known Limitations — v1.3.0
This page defines what BaraDB promises in the v1.3.0 production cut.
| Tier | Meaning |
|---|---|
| Supported (GA) | Documented, tested, appropriate for production apps that fit the scope |
| Experimental | Works in tests/ops demos; not a reliability SLA target |
| Not supported | Out of scope; may fail or corrupt assumptions |
Support matrix
| Area | v1.3.0 | Notes |
|---|---|---|
| Single-node SQL + LSM storage | Supported | — |
| Schema persistence (tables, indexes) | Supported | — |
| FTS / HNSW / graphs across restart | Supported | — |
| Auth + JWT (when configured) | Supported | — |
| Backup / restore (offline, all-databases) | Supported | — |
| Multi-database (non-Raft) | Supported | — |
Raft 3-node (single default DB) |
Supported | failover under load, raft TLS, InstallSnapshot recovery — e2e-proven |
| Leader write forwarding | Supported | needs BARADB_RAFT_CLIENT_PEERS |
| Raft multi-database | Not supported | only default |
CREATE/DROP DATABASE replication |
Not supported | run per node |
| Raft membership changes (join/leave) | Not supported | fixed BARADB_RAFT_PEERS set |
| Follower linearizable reads | Not supported | best-effort after apply |
| Rolling upgrades | Not supported | restart all nodes together — mixed v1.2/v1.3 binaries must not run in one cluster |
| ORC multi-threaded shared LSM | Not supported | default is ARC (nim.cfg) |
| Postgres wire protocol | Not supported | Bara wire + HTTP |
Single-node GA (what you can rely on)
- Process crash + WAL recovery for the default durability settings
- CREATE TABLE / indexes that survive restart (see engine-persistence work)
- HTTP
/healthand/metricsfor process liveness - Offline backup of
data/databasesand restore onto an empty data root
Raft (supported, single-default-DB scope)
Documented in distributed.md. Supported scope:
- 3-node cluster, SQL DML/DDL on
defaultonly - Failover under write load: every acknowledged write survives a leader kill; in-flight writes fail fast — clients must retry
- TLS on the raft port and on follower→leader forwarding (
BARADB_RAFT_TLS_*) - Cold-node recovery via InstallSnapshot (
BARADB_RAFT_SNAP_CHUNK_KB,BARADB_RAFT_PEER_STALE_MS)
Newly documented limitations
- Legacy non-raft REP replication infers delete from empty value — the non-raft replication path still treats an empty value as a delete, so inserts into a PK-only table are misapplied over that path (the row vanishes). Use raft replication instead.
- Snapshot-restore ctx staleness — after an InstallSnapshot restore, HTTP endpoints using the startup-captured ctx may serve stale data until the node is restarted; the
/querypath is fresh per-request. Pre-existing client connections likewise see pre-restore state — reconnect after a restore. - FK-cascade divergence under raft —
ON DELETE/UPDATE CASCADE(andSET NULL) effects are not raft-replicated: followers only apply the parent row's KV change, so cascaded child rows persist on followers. Avoid FK actions on raft-replicated tables, or accept periodic snapshot resync. - Uncommitted writes in snapshots — the leader applies writes locally before raft majority commit; a snapshot taken in that window can include writes that never commit (phantom rows after restore + leadership change). Narrow window; fix tracked for a later release.
- Event-loop stall during snapshot build/restore — snapshot build/restore performs blocking tar/gzip on the node's event loop; large data dirs can stall heartbeats and trigger an election mid-transfer.
Operational requirements
- Set a strong
BARADB_JWT_SECRETandBARADB_AUTH_ENABLED=truein production (see prod compose) - Test restores regularly (
scripts/backup-restore-drill.sh) - Do not share one data directory between two running processes