Upgrade to v0.8
Plan a separate three-layer v0.8 installation, preserve v0.7 databases and backups, and verify cutover without in-place migration
Tapstate v0.8 introduces the three-layer storage layout (Configuration,
Durable cache, and Application data). There is no in-place upgrade or
automatic migration from the v0.7 single-store metadata layout, and no
mixed-version operation.
Do not point a v0.8 server at an existing v0.7 database or working directory. Prepare a separate v0.8 installation and preserve your v0.7 databases, keyring, and deployment materials until cutover verification is complete.
For older single-store upgrades, see Upgrade to v0.7 and Upgrade to v0.6.
Compatibility changes
- Three separate databases replace the single metadata store. Prepare
dedicated
Configuration,Durable cache(tapstate_cacheby default), andApplication data(tapstate_viewsdatabase /viewsSource by default) on a MongoDB replica set or Atlas cluster. See State and storage. - No automatic store migration. Older v0.7 single-store metadata databases
cannot be upgraded in place or migrated automatically into three-layer
storage. Maintain your pipeline and connection definitions as
.tap.ymlfiles and apply them to a fresh v0.8 installation. - Matching v0.8.0 CLI and server are required. New commands and options such as start-check decisions and three-layer storage recovery are not supported by v0.7 clients. An older CLI sees interactive start-check prompts but cannot answer them.
- Explicit browser transport security. Self-hosted browser login over HTTPS
requires
TAPSTATE_BROWSER_AUTH_PUBLIC_ORIGINS(andTAPSTATE_BROWSER_AUTH_TRUSTED_PROXIESbehind TLS-terminating proxies). Plain HTTP browser login is disabled outside explicit loopback opt-in. - Server defaults and runtime checks. The server defaults to UTC unless
JVM
user.timezoneis set explicitly. Choosing Clear in start checks saveson_full_load: clearon that sink, andon_full_load: failblocks full-load starts on populated targets. Unwind checks existing keys, indexes, and permissions before writing and does not rewrite existing populated target documents when field names change.
Before you begin
- Record your current v0.7 server image digest, JVM settings, custom CA bundles, and pipeline IDs.
- Gather or author your maintained local
.tap.ymlworkspace files rather than relying on live v0.7 database state (live v0.7 stores cannot be exported as complete runnable definitions). - Install the v0.8.0 CLI separately and keep the v0.7 deployment materials available for rollback.
- Prepare a MongoDB replica set or Atlas deployment for the new v0.8 installation with three fresh, empty database names. Do not reuse the v0.7 metadata database or an occupied cache database.
- Decide your reconciliation point and plan a controlled cutover window if both deployments cannot read or write concurrently without conflicting.
- Stage the MongoDB connector before saving the new installation's storage settings. Register other source connectors after sign-in. For standalone binary or JAR deployments outside the container image, also ensure JDK 21 is installed.
1. Validate .tap.yml definitions with the v0.8.0 CLI
Offline schema and cross-resource rules evolve across minor releases. Validate existing workspace files before applying them to a new v0.8 server:
tapstate validateReview these definitions in your .tap.yml files:
- Verify sink and
viewwrite_mode(upsert/append) andon_full_load(append[default],clear,fail) policies match your cutover expectations. See Output and serving reference. - Replace legacy automation flags or confirm
--decide target-not-empty=...usage where non-empty targets may be encountered;-ycannot overrideon_full_load: failor blocking start checks. See Start checks. - Review any
nestcapacity overrides (entries_in_memory,max_elements_per_document) andunwindelement_keysettings. See Size the nest and Transforms reference. - Verify whether any
nest.state.databaseoverride is intentional; on three-layer installations,state.databasemust remain separate from Configuration, Application data, and system databases on the Durable cache connection.
2. Deploy and initialize the separate v0.8.0 server
- Stop writers or coordinate source access per your cutover plan, and take a complete backup of the existing v0.7 metadata database, keyring, operator state, and target data before making changes.
- Initialize a new installation directory (
installation --initialize), then start the new v0.8.0 server against that directory and a fresh MongoDB database set, with browser access environment variables configured on the server process. - Complete guided three-layer storage setup and create the first administrator
using Initialize storage.
First-time setup tests Durable cache and activates in the same process,
while checking the default
viewsstore asynchronously. - Register any separately packaged connectors (such as
db2iif evaluated) and re-enter Source credentials. Secrets from v0.7 stores are not imported automatically.
3. Apply, test, and verify cutover
- Sign in with the v0.8.0 CLI or web console and inspect Settings to confirm
the default
viewsdestination passed its background check. - Test every Source connection and run table discovery before building or applying pipelines.
- Apply validated resources to a clean test destination first and run a small
canary pipeline. Check
GET /versionandGET /healthz, confirm initial load row counts, verify CDC insert/update/delete handling, and teststop --keep-stateresume before retiring the v0.7 environment. - If pipelines share PostgreSQL replication slots, confirm slot names and retention windows so the new installation and preserved v0.7 installation do not collide on the same logical slot.
Roll back to v0.7
Because v0.8 runs as a separate installation on its own databases, rolling back means returning traffic and scheduling to the preserved v0.7 deployment:
- Stop all pipelines and servers in the new v0.8 installation cleanly.
- Verify that the preserved v0.7 databases, keyring, and working volumes were not modified by v0.8.
- Restart the previous v0.7 server release against its original databases and configuration, confirm its version and health, and reconcile any source or target writes that occurred during the test window.