Skip to content
All posts

Cloud Streams 1.1

A 202 Accepted response acknowledges an event again, unless a subscription opts in to deferred acknowledgements. Helm 4 upgrades work too.

, by Cloud Streams maintainers

Cloud Streams 1.1 makes deferred acknowledgements opt-in. It’s the one exception to the promise of 1.0, made shortly after it, because the behaviour it changes got subscribers stuck.

Why

Up to 1.0, a subscriber that answered 202 Accepted to a subscription that tracks an offset deferred its acknowledgement: delivery was suspended until the subscriber called the acknowledgement endpoint back, and the subscription faulted if it never did.

Many subscribers answer 202 to mean that they took the event over, ingestion endpoints first among them. They never call back, and their subscriptions stopped.

What changes

From 1.1, 202 Accepted is a success like any other. Subscribers that do call back opt in, on their subscription or, for all its subscriptions, on their broker:

spec:
  subscriber:
    ack:
      mode: deferred     # or, on the broker: spec.dispatch.ack.mode

If your subscribers call back, set mode: deferred before upgrading. Otherwise, their 202 acknowledges the event, and an event whose processing later fails isn’t redelivered.

If they answer 202 to mean “done”, there’s nothing to do. A subscription that 1.0 suspended or faulted forgets its pending acknowledgement when it restarts, and redelivers that event, which is now acknowledged.

Delivery tells how deferred acknowledgements work, and which combinations are refused.

Also in 1.1

Upgrading a Kubernetes-mode release of 1.0 with Helm 4, which applies objects server-side, failed with a conflict on the rules of two aggregated ClusterRoles. The chart no longer declares those rules, which Kubernetes’ aggregation controller owns.

See the release and UPGRADING.md.