Back to notes

NOTE 004 / VERIFICATION / 2026-11 / 11 MIN READ

Always current: certifying a database stack against a moving target

Abstract. Operating systems, databases and runtimes ship new releases every year, and each release quietly changes some defaults. In our experience most breakage in database middleware comes from those changed defaults and from packaging, not from new features. This note describes how we keep a database clustering stack continuously certified against the newest Linux distributions, MySQL, MariaDB, Percona, PostgreSQL and Java releases, and how we retire old ones. The argument is that certification works best as a standing practice with one matrix, explicit retirement reasons and a classifier that makes every red run name its cause.

The upgrade nobody schedules

A clustering product sits between applications and databases. It reads server variables, parses replication streams, shells out to client tools, installs backup utilities and runs on whatever JVM and distribution the customer chose. None of those dependencies follows the product's release calendar. A JDK security update arrives every quarter, and the customer who installs it does not ask first.

The usual response is to certify at release time, which produces a snapshot that starts to age the day it is published. The alternative we practise is to treat certification as a continuous activity, closer to keeping a build green than to signing off a release. New platform versions enter the test matrix as soon as they can be installed, old ones leave it on a schedule, and every failure is attributed to a known cause or investigated until it is.

The reason this matters is what actually breaks. When we look back at the failures that new releases caused, very few involved a new feature the product failed to support. Almost all were a default that changed underneath a long-standing assumption, or a package that moved.

Defaults break more than features

A new feature is opt-in. Nobody's cluster breaks because a database added a new index type. A changed default is the opposite: it applies to every installation that did not set the value explicitly, which is nearly all of them, and it changes behaviour that code written years earlier took as a constant. The release notes mention it, phrased from the database's point of view rather than the integrator's.

We find it useful to sort these changes into categories, because each category suggests where to look and what kind of test catches it.

Category of changeExampleHow certification catches it
Data representation defaultsA database release made a newer collation the default for its main character set. Its numeric id lay beyond the range a replicator's charset table knew, and the miss produced an empty charset name instead of an error.Install a stock server with no tuning, exactly as a new customer would. The first status check fails, and the log signature is specific enough to classify automatically.
Value formats of variablesA boolean server variable that had always reported 0 or 1 began reporting OFF or ON after it was widened into an enumeration. Code that parsed it as an integer threw, and the cluster never came online.Any test that brings a cluster up exercises every variable the product reads. The failure is total, which makes it easy to misread as an installation problem.
Client tool behaviourA command-line client stopped accepting a long-standing statement terminator in non-interactive mode. Every validation query returned an error with empty output, so every check that parsed a result saw nothing. The downstream messages (replication not enabled, storage engine missing, server id too small) were all false.Read the first failure, not the last. A classifier rule anchored on the first error, matched against the build log because the failed install produced no other logs, labels the whole cascade with one cause.
Security defaults in the databaseA password plugin that older configurations named as the default was removed from the server. Configuring it as the default stopped the server from starting at all.Tests that switch authentication methods run against every database version. Where the method no longer exists, the test stops exercising it, while the check of the current default still runs.
Security defaults in the runtimeA JDK update enabled TLS hostname verification for RMI connections by default. Certificates without a matching subject alternative name were now rejected.Run secured installations on current JDK builds, and run upgrade tests that install older product releases on the same new JDK, because the old release is what the customer upgrades from.
Runtime of the automation itselfPython 3.12 removed long-deprecated TLS parameters that a widely used automation library still passed. On new distributions whose default Python was 3.12, every module that fetched a URL failed.Provision every new distribution with the same automation before running any product test, treating provisioning as a tested component.
Packaging and repositoriesA vendor stopped adding its backup tool to a general repository for platforms released after a certain date and published it only in a version-specific repository. On new platforms the package seemed not to exist.A cheap single-node provisioning suite on every distribution and database combination, before any cluster test, shows a missing package as a missing package rather than as a product failure.
Distribution of artifactsAn unversioned repository release package was served from a CDN whose edges held different revisions. One node received an old revision that did not contain the channel the installation needed.Pin revisions, and assert the expected repository channel exists before enabling it, so the failure names its cause instead of surfacing two steps later.

Two patterns run through the table. First, none of these changes is a defect in the release that introduced it. Each was a deliberate, documented decision, often a good one: a better collation, a richer read-only mode, stricter TLS. The lesson is not that vendors break things. It is that any value read from outside the product is an interface, and interfaces drift.

Second, the failures cluster at boundaries the product does not own: the textual output of a client, the format of a server variable, the layout of a vendor's repositories. Only an installation on the real release reaches them.

Clustering middleware (replicator, cluster manager, proxy) first failure observed here Database tools (client, backup utility, repositories) Client tool behaviour Database server (collations, variables, auth plugins) Data representation defaults Runtime (JDK, TLS defaults) Security defaults in the runtime Linux distribution (packages, Python, filesystem defaults) Runtime of the automation itself
Figure 1. Changed defaults originate in every layer below the middleware, but they surface as failures in the middleware.

Adopt new releases early

A changed default costs the least when it is found before a customer finds it. That argues for adding a new release to the matrix as soon as it can be installed, not when it is first requested. A new item gets a provisioning proof first, then a certification run of its own.

Early adoption needs one distinction kept sharp: added is not certified. An item enters the matrix the moment it can be provisioned, and becomes certified only when its certification run is green with every remaining failure explained.

Sometimes a new item is worse than red. When we added a new JDK release, cluster suites did not fail on it; they hung until the job was killed, and a hung job produces no logs to classify. Rather than remove the version, we marked it in the matrix as blocked by a named defect. Automatic expansion (every Java version, every distribution) now skips it, so one hang cannot stall a whole sweep, while an explicit request for that version still runs. When the defect is fixed, one line is removed and the version rejoins every sweep.

We certify one new item per run, so attribution is never ambiguous.

One matrix as the single source of truth

Every list of supported platforms that exists in more than one place will eventually disagree with itself. We keep the entire matrix in a single file: distributions with their pinned machine images, database vendors and versions, Java versions, each with an end-of-life date. Provisioning, test selection, the interface that builds test runs and the triage tooling all read that file. Adding or removing a distribution is a one-file change, and we verify that with a search before each edit.

Three habits keep the file trustworthy. Reasons live next to the entries they explain, as comments, so the next maintenance pass does not undo a deliberate decision. Image pins come from the upstream publisher and carry the image name as a comment. And we never transcribe the inventory into documents, which go stale silently; documents point at the file.

The file also makes cost visible. Every distribution added multiplies across every suite that runs on all distributions, forever. That cost belongs in the decision, stated in suite-hours.

Matrix file (distributions + images, databases, Java; each with EOL date, optional blocked-by, comments with reasons) Provisioning (image and user lookup) Test selection (all / per-axis expansion, skips blocked items) Run-builder interface (dropdowns generated from the file) Failure classifier (matchers retired with their platform) Documents point at the file, never copy it
Figure 2. One matrix feeds every consumer; documents reference it rather than restate it.

Retire on a schedule, with explicit reasons

Adding is the easy half. A matrix that only grows becomes slow, expensive and full of versions nobody runs. We sweep for end-of-life entries periodically and remove them deliberately, with a reason recorded for every case that is not obvious from the name.

The calendar is an input, not the decision. End-of-life dates in the file were entered by hand and have been wrong; one sweep corrected the dates of two Java versions. So each date is checked against the upstream schedule before anything is removed. More importantly, field usage outranks the calendar. MySQL 8.0 passed its end of life in April 2026 and stays in our matrix, because it is still the most widely deployed version among the installations we support. The file says so in a comment, and the sweep procedure requires asking specifically before removing it.

The same logic works in the other direction. We removed a Linux distribution whose vendor had stopped publishing official cloud images, leaving only third-party re-listings that charge software fees. It is a rebuild of a distribution we already test, so the coverage it added was small and the cost of keeping it was real. A database version whose packages the vendor had already archived went the same way. Each commit states why, so a later reader can tell retirement from neglect.

Retirement also has a cleanup duty. When a platform leaves the matrix, any failure matcher that only ever applied to it becomes dead code that can never fire. We delete it in the same change, so the classifier describes the matrix as it is.

A red run must name its blocker

Continuous certification produces a steady stream of red runs. The goal is that no red run is unexplained twice. Every failure we diagnose becomes a matcher: an ordered sequence of log patterns, optionally restricted to one log file and one database family, with a label that names the blocking defect and the certification it blocks. When a run fails, the classifier checks every log archive the run produced and attaches the label.

The hard part is precision, not recall. An early matcher for a sporadic service problem on one distribution required only a line identifying that distribution, which appears in every log from it. For a while it claimed every failure on that distribution as the known issue, including a brand-new installation failure on the newest release. An over-broad matcher turns a new problem into an old one. We now require each matcher to anchor on the failing behaviour itself, and scope vendor-specific issues by database family rather than by a marker line every log carries.

Some failures leave nothing to match. A hang ships no logs, and an installation that fails early may produce no cluster archive. For the first case we keep the matcher in place, marked dormant, so that the timeout which converts a hang into a failure does not also have to rediscover the patterns. For the second, matchers can target the build log of the test run itself.

Red run Collect every log archive and the build log Matches a known cause? yes Label with the named blocker; run stays red no Product, environment or repository? Product defect: file it, add matcher, keep test red Test or environment: fix the test or provisioning Repository or packaging: fix selection, verify vendor index first becomes a matcher
Figure 3. Triage converts each new diagnosis into a matcher, so the next occurrence is labelled automatically.

Keep known-red tests red

When a test fails on a known product defect, the tempting move is to skip it until the fix lands. We do not. A skipped test reports green, hides the defect, and must be remembered and re-enabled later. A test left red, with a label naming its blocker, costs nothing to read and verifies the fix the day it arrives.

We go further where we can: when a defect appears only as a race under load, we write a deterministic reproducer that fails every run until the fix lands. That test becomes the acceptance test for the fix, paired with a control on another database engine that is expected to pass.

Skips do have a legitimate place, and the line is worth drawing precisely. When the environment has removed the thing a test exercises, the test should stop exercising it there. The authentication test above stops switching to a password plugin that no longer exists in the newer server, while its check of the current default still runs. The rule we apply: skip when the platform no longer has the capability, never when the product mishandles a capability the platform still has.

Product, environment or repository

Before any failure is attributed, it is classified into one of three owners: the product, the test or provisioning environment, or the package source.

The most instructive case for us was the backup tool that seemed to be missing on new platforms. It was first recorded as a vendor gap and even widened to more distributions, until we listed the vendor's repository indexes directly and found native builds for every one of them in a version-specific repository. The general repository had simply stopped receiving them. The correction is recorded in our known-issues history rather than deleted, because the wrong diagnosis is part of the lesson: a package can be missing and present at the same time, and the only reliable check is to list every plausible repository yourself.

The environment deserves the same suspicion. When the automation runtime broke URL fetches on new distributions, we went back to the older ones and found that a soft-failed task had been silently skipping a package repository on an entire distribution family for an unknown length of time. A task allowed to fail quietly will eventually fail quietly.

Only when the product is the remaining explanation do we file it as a product defect, with the log evidence and a matcher.

What we would do differently

We would build the classifier before the second platform, not after the tenth. Most of the cost of continuous certification is reading logs.

We would treat every value read from outside the product as an interface from the start. A loud failure on an unknown value is cheaper than a quiet wrong answer.

We would hard-fail provisioning by default. Every soft-failure we have found was hiding something.

And we would ask one question earlier about any missing package: have we listed the vendor's repositories ourselves?

Back to notes