Path: redb-tsak/UPGRADING.md Snapshot: redb-tsak, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-tsak Page: https://redbase.app/src/dev-2026-12-06/redb-tsak/UPGRADING.md ---- # Upgrading redb.Tsak What to check and change when moving to a new version. Each section lists the changes that need action; [CHANGELOG.md](CHANGELOG.md) has the full list of what changed. ## 4.8.0 ### An `Errored` route makes the node not ready A route whose consumer failed to start with its context (a broker, database or server not up yet, a listener port taken) is `Errored`; redb.Route starts its consumer again in the background (`RedbRoute:ConsumerStartRetry`). Tsak's health used to look only at whether each context had started, so `/api/health/ready` answered `200` while such a route took no messages. Health now has a `routes` check: it is Unhealthy while a started context has an `Errored` route, both while the route waits for a retry and after the retries ran out, as Apache Camel reports such a route DOWN since 4.7. Its details name up to ten routes as `context/routeId`, so the `503` of readiness and `tsak system health` say which. `/api/health/live` does not read it: a broker that is down does not restart the node. Action, for a deployment where one broker that is down must not take every node out of the load balancer (the old readiness): set the Camel switches to `false` in the worker's configuration. The route is then Degraded, which readiness passes unless `Tsak:Health:DegradedNotReady=true`: ```json "RedbRoute": { "ConsumerStartRetry": { "UnhealthyOnRestarting": false, "UnhealthyOnExhausted": false } } ``` `UnhealthyOnRestarting` covers a route waiting for its next retry, `UnhealthyOnExhausted` one no retry waits for any more (`MaxAttempts` ran out, `Enabled` is `false`, or a route policy refused the start). The watchdog does not restart `Errored` routes: the context's own start retry owns them. ### .NET 10 and .NET 11 only The redb.Tsak libraries (`redb.Tsak.Core`, `redb.Tsak.Contracts`, `redb.Tsak.Client` and the Pro parts) target `net10.0` and `net11.0`. The `net8.0` and `net9.0` builds are gone: .NET 8 and .NET 9 reached end of support on 10 November 2026. The worker and the dashboard, their images and archives stay .NET 10 applications. Action: a host or a module (`.tpkg`) built for .NET 8 or .NET 9 either stays on 4.7.x or moves its target framework to `net10.0` before taking this version. Nothing changes in the API. ### `ITsakApiClient` has `GetLogsBeforeAsync` `ITsakApiClient` gains `GetLogsBeforeAsync(long beforeId, int? limit, string? level, CancellationToken ct)`, the client side of `GET /api/logs?beforeId=`: the buffered log entries older than an id, newest first. `TsakApiClient` implements it. The interface has no default for it, as for its other members. Action: only a class of your own that implements `ITsakApiClient` (a test double, a wrapper) needs a change. Add the member: a wrapper forwards it to the client it wraps, a test double returns what the test needs. Code that only calls the client needs nothing. ### No licence code any more Pro is free of charge and needs no key, so Tsak no longer carries any licence code. Nothing reads a licence, nothing counts nodes against one, and nothing stops a node for one. Removed public types and members: - `redb.Tsak.Core.Extensions.LicenseConfigReader`; - `redb.Tsak.Core.Pro.Licensing.ITsakLicenseManager`, `TsakLicenseManager` and `TsakLicenseNodeLimitException` (the whole `redb.Tsak.Core.Pro.Licensing` namespace); - `ClusterOptions.LicenseCheckIntervalIterations` (`Tsak:Cluster:LicenseCheckIntervalIterations`). Constructors that change: - `ClusterCoordinator` loses its `ITsakLicenseManager licenseManager` parameter and its optional `IHostApplicationLifetime? appLifetime` parameter, which only the licence check used. - `RedbNodeRegistry` loses its `ITsakLicenseManager licenseManager` parameter. What a cluster sees: - Any number of nodes joins a group; no node is refused or stopped over a node count. - The periodic check in the coordinator's work loop that could stop a node (every `LicenseCheckIntervalIterations` heartbeats) is gone. - The node registration lock stays: a starting node still takes it, and still refuses to register when it cannot get it in 10 seconds, because the protocol check of the alive peers and the removal of records left by 4.0.x run under it. - The start-up log has no licence banner. What to do: - A host that builds the cluster through `AddTsakCluster` (the Worker does): nothing. - Code that constructs `ClusterCoordinator` or `RedbNodeRegistry` by hand, or substitutes `ITsakLicenseManager` in tests: drop that argument (and `appLifetime` for `ClusterCoordinator`). - Code that referenced the removed types: delete it. There is nothing to replace it with. - A configuration that still sets `Tsak:Redb:License` (or `Tsak__Redb__License`, `Tsak__Redb__License__0`, ...), a `License` key of a named `Redb` instance, or `Tsak:Cluster:LicenseCheckIntervalIterations`: nothing breaks. The `License` keys are ignored silently and the cluster option is no longer bound; remove them when convenient. ## 4.5.0 ### Package config beside a .tpkg **A `{Module}.config.json` on disk beside a `.tpkg` now overrides the one inside the package** (it was the other way round). Layer 4 is read as: the package's own `{Module}.config.json` first, then the file beside the package, so a deployment can change a value of a package without repacking it. The module's context name is looked up in the same order. Whom it concerns: only a folder that holds both a `.tpkg` and a `{Module}.config.json` of the same module with different values for one key (or a different `ContextName`): the file on disk now wins. Projects made from the redb.Templates templates keep only `ContextName` and `AutoStart` inside the package and `context.json` beside it, and work as before. To keep the package's value, remove the key from the file beside it, or the file itself. ## 4.4 ### Node id and Quartz instance id **One node id, one live worker.** A worker that finds its node id (`Tsak:Cluster:NodeId`, or the host name) held by a record that is still alive watches it until its heartbeat would expire (`DeadNodeTimeoutSeconds`, 60 s by default): a previous process of the node goes quiet and the start goes on; a second live process keeps beating and this start is refused, naming the other's host and last heartbeat. Workers that today run with one shared `NodeId` (a value in a configuration all replicas read) stop starting: leave `NodeId` empty so each takes its host name, or give each its own. A worker restarted right after a crash may now wait up to `DeadNodeTimeoutSeconds` before it registers; after a clean stop it does not wait. **`Quartz:quartz.scheduler.instanceId` is `NODE` in the shipped configuration** (was `AUTO`): every context scheduler of the worker takes the node id, which stays across restarts, so a crashed node takes its own fired triggers back at its first check-in. A configuration of your own that sets `AUTO` or an explicit id keeps it. The records the earlier `AUTO` ids left in `qrtz_scheduler_state` are harmless, no live scheduler reads them; delete them by hand if you like, with the rows of every `qrtz_` table under scheduler names no worker uses any more. ### Quartz tables The scheduler of every route context runs on Quartz 3.22 (was 3.16). Its corrections change when or whether a job fires: a job with `[DisallowConcurrentExecution]` (a stateful cron route) is held to one run at a time across the whole cluster, where it used to be held per node only; day-of-month `L`, `LW` and `W` expressions, fire times in the repeated hour of a DST fall-back and day-based calendars near DST changes are corrected; pausing or resuming groups by prefix covers every matching group. The trigger of a running job that does not run concurrently reads `Blocked`, not `Complete`, in `GET /scheduled`, `tsak scheduler jobs` and the dashboard. With a clustered job store the worker brings the Quartz tables up to 3.22 at start: - `QRTZ_TRIGGERS.MISFIRE_ORIG_FIRE_TIME` (3.17): the time a misfired trigger was due, so a route's `CamelQuartzScheduledFireTime` is that time after a misfire under the fire-now policies; - `EXECUTION_GROUP` on `QRTZ_TRIGGERS` and `QRTZ_FIRED_TRIGGERS` (3.18); - `QRTZ_TRIGGERS.PREFERRED_NODE` and `PREFERRED_NODE_AUTO` (3.19): node affinity, which needs both. New installations get them from the create scripts. On an existing one the worker adds the missing columns under a lock (`pg_advisory_lock` on PostgreSQL, `sp_getapplock` on SQL Server, an immediate transaction on SQLite), so nodes starting together add each column once; existing triggers keep their state. **A database role that may not alter the Quartz tables** gets a warning naming the missing columns, and the worker goes on without them, as before. Run the administrator's script once: it ships beside the worker in `sql/quartz/quartz_3.22_{postgres,sqlServer,sqlite}.sql` (in the image and the archive). The script also carries the Quartz 3.20 index alignment, which drops and creates indexes and which the worker never runs on its own. The PostgreSQL and SQL Server scripts may run more than once; the SQLite one once, after checking `PRAGMA table_info`.