Skip to content

MDDB v2.19.14

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Nov 21:42
· 1 commit to main since this release

MDDB 2.19.14

A client could not tell a collection that does not exist from one where nothing matched, and /v1/stats could miss a collection for hours after it was created. This release answers both, names the commit a local mddb-cli was built from, and documents the permission every HTTP route needs. One answer changes its status: a search of a collection that does not exist is now 404 (see Changed); the rest is additive.

Added

  • collectionExists: false on MCP search answers (#465). full_text_search, semantic_search, hybrid_search, search_documents and code_symbol add the field, in the text and in structuredContent, when the collection they were asked about does not exist; their output schemas list it, and answers about existing collections are unchanged. code_search and code_symbol line answers say collection "x" does not exist in one line.
  • countsPending, and the age of the counts over MCP (#466). In GET /v1/stats a collection the snapshot has not counted yet carries countsPending: true. The MCP get_stats tool carries it too, with statsComputedAt and statsAgeSeconds.
  • mddb-cli Dockerfile build arguments MDDB_VERSION and MDDB_COMMIT, passed to the binary's --version.

Fixed

  • GET /v1/stats lists a new collection as soon as it holds a document (#466). The list of collections came from the cached snapshot of the counts, which on a large, busy database is MDDB_STATS_TTL plus one full count old, so a collection filled by mddb-cli autoindex could be missing for hours. The list is now read on every call (one lookup per collection, no document read); the counts stay cached, so a request still never waits for a count. A deleted collection leaves the list at once, and a difference between the list and the snapshot starts a count without waiting for the TTL. gRPC Stats, GraphQL stats and the MCP get_stats tool list collections the same way. With statsPending set, collections are now listed (each with countsPending) where the list was empty.
  • mddb-cli --version names the commit a build came from (#467). make build gives mddb-cli version 2.19.14 (commit c87c340b9f0d), a plain go build in a checkout gives dev (commit c87c340b9f0d-dirty), and dev alone means the build recorded nothing. The version is still the first word after version. make build and make build-windows pass the commit; make version prints it. mddbd --version is unchanged.
  • A binlog test raced the periodic flusher (TestAWriteOrFlushFailureStopsTheLog) and failed on two pull requests: the flusher could write the buffered entry out before the test closed the file. The test now buffers under the lock.

Documentation

  • docs/AUTHENTICATION.md: the permission every HTTP route needs (#468), and whether a user limited to some collections can call it, with the code endpoints (/v1/symbol, /v1/fts, /v1/code-graph and the searches) one by one, the exact 401 and 403 bodies, and a least-privilege example for code search. A test fails when a route has no row or its row disagrees with the access rules; another pins the answers on /v1/symbol and /v1/fts. The Permission Types table said statistics need admin; /v1/stats needs read on *.
  • docs/API.md says when /v1/fts answers with passages instead of results (the request's format, or the collection's retrieval profile, which mddb-cli autoindex sets for a collection that is mostly source code), and how the /v1/stats counts are cached.
  • openapi.yaml: the 404 for a missing collection, countsPending, and the 401/403 answers of /v1/symbol, /v1/code-graph and /v1/code-languages.
  • docs/INSTALLATION.md and the mddb-cli README no longer name the Makefile targets build-cli and install-all, which do not exist.

Dependencies

  • Go: quic-go 0.66.0, golang.org/x/net 0.63.0, klauspost/compress 1.20.5, bits-and-blooms/bloom 3.7.2, go-sql-driver/mysql 1.10.2 (test module).
  • Rust (mddb-chat): sha2 0.11.2, toml 1.2.3.
  • npm (panel, chat widget, GitHub Action, Chrome extension, Grafana datasource): vite 8.4.0, vitest 5.1.2, webpack 5.113.0, undici 8.13.1, @grafana/* 13.3.2, lucide-react 1.81.0, autoprefixer 10.7.0, @typescript-eslint/* 8.74.0 and type packages. The GitHub Action's dist/ is rebuilt.
  • Docker: grafana/grafana 13.3.2 (Grafana datasource development image).
  • GitHub Actions: actions/setup-go 7.1.0, github/codeql-action 4.39.5, astral-sh/setup-uv 10.4.0, sigstore/cosign-installer 4.1.4, SonarSource/sonarqube-scan-action 8.5.1, spagu/ssg 1.9.15.

Changed

  • Breaking: a search of a collection that does not exist answers 404 (#465). /v1/fts, /v1/vector-search, /v1/hybrid-search and /v1/symbol answered 200 with an empty result, the same as a query that matched nothing, so a typo in a collection name looked like no match. They now answer 404 {"error":"collection not found","collectionExists":false}. A collection exists when it has a configuration or at least one document; the check reads the store (not the /v1/stats snapshot) and only when the answer is empty, so a search with hits costs nothing more. A query that matches nothing in an existing collection is 200 as before. A client that searches a collection before its first write must create it first or treat this 404 as an empty result. /v1/search, /v1/cross-search, gRPC and GraphQL are unchanged. docs/API.md also says when /v1/fts answers with passages instead of results.
  • Documentation no longer says in which release an option appeared, for releases before 2.19.0. Markers such as (v2.18.9+) and Since v2.18.8, and sentences that described how older releases behaved, are removed from docs/ and README.md. Headings that carried a version lost it, so their anchors changed (SEARCH.md#grouping-results-v2188 is now #grouping-results); links inside the repository follow. The on-disk format notes for upgrades from 2.18 stay. This changelog keeps the history.
  • Documentation site: a Model Training group in the sidebar and in the Documentation section of the home page, with the guide and the reference.
  • Documentation site: the sidebar and the home page list the same pages. The sidebar gains Use Cases, Docker Hub Image, AI Agents, Corpus Packs, Work Tracking, MCP Revisions, Elasticsearch Subset, Qdrant Point Query, Open WebUI Engines, Auth Quick Start, Multi-Tenancy, Security Controls, Cluster, Storage Layout, Storage Tuning and License Audit. The home page gains Installation, Configuration, Features, Embedding Providers, Zero-Shot Classification, Bulk Import, Work Tracking, MCP Revisions, TLS, Security Controls, Admin Panel, Cluster, Deployment, Qdrant Point Query, Open WebUI Engines, REST API Guide, GraphQL, Server-Sent Events, Benchmark, Comparison and Guides.

Removed

  • docs/INDEX_AUDIT.md (/docs/index-audit/): a 2025 audit of the home page, out of date.
  • Four maintainer notes leave the site (status: draft): AUTH_IMPLEMENTATION_SUMMARY.md, DOCKER_HUB_UPDATE.md, DOCKER_SETUP.md and LISTING.md. The files stay in the repository; links to them point at the repository.

Installation

Debian / Ubuntu

curl -LO https://github.com/tradik/mddb/releases/download/v2.19.14/mddb_2.19.14_amd64.deb
sudo dpkg -i mddb_2.19.14_amd64.deb

Fedora / RHEL

curl -LO https://github.com/tradik/mddb/releases/download/v2.19.14/mddb-2.19.14.x86_64.rpm
sudo rpm -i mddb-2.19.14.x86_64.rpm

Homebrew

brew install tradik/tap/mddb

Snap

sudo snap install mddb

Docker

docker pull tradik/mddb:2.19.14

Every artifact is published with a sha256 checksum and an SLSA provenance
attestation; see the assets below.