Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Kubernetes Controllers: The Cache-Staleness Bug at Scale

Key takeaways Structure reconcilers as ordered, independently testable steps, each reporting its own status condition, over one monolithic Reconcile function. Informer caches lag the API server by tens of milliseconds at scale; a stale read inside a MergeFrom patch can clobber a condition you set 49ms earlier. Fix status patching with an uncached reader inside RetryOnConflict ; Kubernetes v1.36…

The Kubernetes controllers pattern breaks a controller's reconcile loop into a series of ordered, independent steps, each reporting its own status condition. This approach keeps provisioning logic testable and allows for visible partial progress. However, informer caches can lag by tens of milliseconds, causing stale reads and overwriting of status conditions.

Kubernetes v1.36 introduced fixes to detect and skip behind-cache reconciles. A key to solving this issue is using a shared status-patching helper that centralizes conflict-safe read-then-patch operations. The helper reads through an uncached reader instead of the cache, re-fetches the latest object, mutates it, and patches it with a retry.RetryOnConflict loop.

This avoids race conditions between reconciling steps and ensures that unchanged state does not re-patch. Running the controller locally, which bypasses the shared cache, can help identify cache-related issues that persist in-cluster.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

I sent an empty-wallet payment to 4,256 x402 routes. 38 sellers told me their facilitator was down.

Answering HTTP 402 is not the same as being payable. On 2026-10-14 I took every Base seller in the Coinbase CDP Bazaar with at least two distinct payers in the last 30 days and sent each of their…

  • 4,256 payment routes tested with empty-wallet authorization
  • 91 routes reported facilitator outage due to empty wallet
  • Suggested fix involves fetching facilitator verification endpoint

Two phones at the same table pressed Join in the same moment, and the loser was told the quiz did not exist

Nobody who plays a quiz on PubTrivia has an account. They scan the code on their table, type a name, and they are in. That is deliberate, because the alternative is asking six people in a pub to…

  • Two phones attempted to join the same PubTrivia session simultaneously.
  • Race condition caused both phones to be denied entry to the quiz.
  • Advisory lock could prevent concurrent inserts in future quizzes.

More from Wednesday, 14 October 2026 →