Skip to content

fix: remove orphaned deprecated config ahead of 2.0.0 - #2071

Merged
jfallows merged 7 commits into
developfrom
claude/zilla-deprecated-config-review-ww5n3h
Jul 9, 2026
Merged

jfallows merged 7 commits into
developfrom
claude/zilla-deprecated-config-review-ww5n3h

Conversation

@jfallows

@jfallows jfallows commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Description

Removes deprecated config/SPI surface that is either fully superseded or was never actually exercised by any spec, example, or fixture in this repo — ahead of the 2.0.0 release where breaking changes are acceptable.

  • grpc binding: cherry-picked the existing services options removal onto latest develop (superseded by catalog-based schema resolution)
  • mqtt-kafka binding: removed deprecated serverRef option (superseded by the engine's service.hostname property); it was already dead beyond the deprecation warning it logged
  • kafka binding: removed deprecated routes[].when[].groupId condition. Traced its origin to mqtt-kafka's old Kafka-group-based session ownership design (a well-known "mqtt-clients" consumer group tied to the now-removed serverRef), itself replaced by Store-based ownership ahead of 2.0. No spec, example, or fixture — on this branch or on support/1.x — ever configured it.
  • engine: removed the deprecated ConfigAdapterContext SPI. Its sole capability (readResource) had zero live callers once the grpc removal landed. binding-asyncapi/binding-openapi (the only two adapters using it for anything beyond a no-op) now build their nested tcp/tls/http/mqtt/kafka option adapters lazily on first use instead.
  • engine: removed the deprecated Configuration.directory() — EngineConfiguration/ZillaExtConfiguration already fully override it with their own implementations, so it had no live callers once their @Override annotations were dropped
  • command-start: removed the deprecated zilla.json config fallback (zilla.yaml has been the format for years)

Not removed (flagged during review, deliberately left alone):

  • binding-kafka's deprecated sasl: options block — deprecated too recently for a 2.0.0 removal
  • binding-kafka's deprecated topics[].deltaType — confirmed reachable (only under kind: cache_server) and still live, tested functionality (dedicated spec fixture, SchemaTest coverage, unit tests) with no replacement anywhere in the codebase; transforms is an unrelated feature, not a successor
  • Engine-internal BudgetDebitor overloads / EngineConfiguration.configURL() / EngineContext.creditor()+supplyDebitor() — bundled as a separate "engine internals" cleanup, held back because migrating binding-kafka's merged-budget accounting off the deprecated credit/debit API turned out to require an architecture redesign, not a quick fix

Test plan

Every commit was verified independently before being added to this branch:

  • runtime/binding-grpc + specs/binding-grpc.spec: clean checkstyle, unit tests, full k3po IT suite
  • runtime/binding-mqtt-kafka + specs/binding-mqtt-kafka.spec: clean checkstyle, unit tests, full k3po IT suite
  • runtime/engine: clean checkstyle; 244/245 unit tests (the one failure, TrustedTest.shouldConfigureTrustViaCacerts, is a pre-existing environmental cacerts issue unrelated to this change); 204/204 ITs
  • runtime/command-start: clean checkstyle, unit tests, ITs
  • runtime/binding-asyncapi, runtime/binding-openapi, runtime/binding-openapi-asyncapi, runtime/binding-mcp-openapi, incubator/binding-risingwave: clean checkstyle, unit tests, full k3po IT suites (this surfaced and fixed a real ServiceLoader recursion bug from an initial eager-init approach)
  • runtime/binding-kafka + specs/binding-kafka.spec: clean checkstyle; 787 IT + 72 unit tests, zero failures
  • runtime/binding-tls: compiles clean (touched only to fix a field type after the Configuration.directory() removal)

Generated by Claude Code

jfallows and others added 7 commits July 8, 2026 22:31
The serverRef option was announced deprecated (#1797/#1802) in favor of
the engine-level service.hostname property and is effectively unused.
Ahead of 2.0.0, drop it entirely: the config classes, adapter, schema
property, the dead effective-hostname field it fed on the hot path, and
the deprecation warning it triggered.
EngineConfiguration.directory() and ZillaExtConfiguration.directory()
already override it with their own property-backed implementations, so
the base is a dead-with-no-caller shim once its @OverRide annotations
are dropped. Fix the one caller (TlsWorker's bench harness) that held
its config as the base Configuration type instead of EngineConfiguration.
zilla.yaml has been the config format for years; drop the silent
fallback to a sibling zilla.json file and its deprecation warning.
Its sole capability, readResource, has had zero live callers since the
grpc binding's services option was removed. Delete the interface and
OptionsConfigAdapterSpi.adaptContext, drop the now-pointless context
parameter threaded through the entire config-adapter constructor chain
(OptionsConfigAdapter and every namespace/binding/guard/vault/catalog/
store/exporter/route/kind adapter), and the EngineManager context
implementation that backed it.

binding-asyncapi and binding-openapi were the only two adapters that
used adaptContext for something other than a no-op: constructing nested
tcp/tls/http/mqtt/kafka OptionsConfigAdapter instances. They now build
those lazily on first use instead of via the context callback -- lazily
because OptionsConfigAdapter's constructor enumerates all Kind.BINDING
SPI providers via ServiceLoader, so building them eagerly in the
adapter's own constructor recurses back into constructing themselves.
groupId condition matching existed to route Kafka consumer-group control
traffic (join/sync/heartbeat/offset-commit) by group name before any
topic is known. Traced its origin to mqtt-kafka's old Kafka-group-based
session ownership (a well-known "mqtt-clients" group used when serverRef
was set, see support/1.x), which was itself replaced by Store-based
ownership ahead of 2.0 (#1797/#1806) -- both serverRef and Kafka-group
ownership are already gone. No spec, example, or fixture in this repo,
on this branch or on support/1.x, ever configured routes[].when[].groupId.

Collapsed KafkaBindingConfig's two resolve() overloads into one
(topic-only), simplified KafkaConditionMatcher/KafkaRouteConfig to match
on topic alone, and dropped the now-unused argument at all 10 call sites
across the group/offset-commit/offset-fetch/consumer stream factories --
each factory still threads its own groupId value for wire-protocol and
fan-out-key purposes, only the routing-condition use is gone.
@jfallows jfallows self-assigned this Jul 9, 2026
@jfallows
jfallows merged commit e23bf65 into develop Jul 9, 2026
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants