Repository navigation
Conversation
…e old one Release cancels the lease loop's context. If that lands while a refresh query is in flight, the cancelled query closes the dedicated connection, the release UPDATE fails with "bad connection", and the lease stays held until it expires. The next instance then waits out the full lease duration (1 minute by default). Retry the release on a pooled connection. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The scheduler's retry goroutine slept through task backoff (5s + 10s with retries=2) after the run context had expired, because it only woke on failEarly. A retry cannot succeed once the run context is done, so scheduler.Run now takes the run context, skips retries after it expires, and ends a pending backoff wait. This also delayed node shutdown (DataSource.Close waits on the in-flight run) by up to 15s. Adds TestScheduler_RunContextDoneCutsRetryBackoff. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…l injectable registrysyncer.New takes variadic options; WithTickInterval sets how often the sync loop polls the registry (default stays 12s). The chip ingress batch client's health-check interval is a field (default stays 5s) with NewTestChipIngressBatchClientWithHealthInterval. Tests use short intervals instead of waiting out the defaults. No behaviour change at the defaults. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
product-security-plaid-production
Bot
requested review from
DylanTinianov,
archseer,
cedric-cordenier and
dhaidashenko
November 11, 2026 13:27
Contributor
|
✅ No conflicts with other open PRs targeting |
The observation loop polls whatever stream set Observe last stored, and nothing expired it. A node that falls behind in consensus stops getting Observe calls, so its loop kept hitting adapters for streams the DON had already tombstoned or removed. Drop the set if Observe has not refreshed it within max(10*T, 5s) and let the loop exit. The next Observe restarts it. This was the cause of the TestIntegration_LLO_tombstone_stops_observations_and_reports flake: one of four nodes lagged after a KV commit conflict, kept a stale two-stream set, and bridge calls for the tombstoned stream never stopped. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
CORA - Pending ReviewersAll codeowners have approved! ✅ Legend: ✅ Approved | ❌ Changes Requested | 💬 Commented | 🚫 Dismissed | ⏳ Pending | ❓ Unknown For more details, see the full review summary. |
This was referenced Nov 12, 2026
Merged
erikburt
approved these changes
Nov 12, 2026
jmank88
approved these changes
Nov 13, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Two production bugs surfaced while chasing slow tests: a lease lock that stayed held when
Releaseraced an in-flight refresh, and a retry backoff that outlived the run context during shutdown. This fixes both and makes two timers settable so the speed-ups in #24191 don't have to wait out their defaults. Part of DX-5066.Changes
Release()cancelled the refresh query's connection, so the release statement ran on a dead connection and the lease stayed held:Before: release on the cancelled connection
After: fall back to a fresh connection
Pipeline retries no longer sleep through a dead run context
DataSource.Closewaits for running pipelines, and the retry goroutine only woke onfailEarly, so a task withretries=2delayed shutdown by up to 15s.scheduler.Runnow takes the run context, stops retrying once it is done, and cuts any pending backoff short. Covered byTestScheduler_RunContextDoneCutsRetryBackoff.Two intervals are now injectable, defaults unchanged
registrysyncer.WithTickIntervalsets the registry poll interval; the default stays 12s, which is how long a newly added DON otherwise takes to appear.chipIngressBatchClient.healthCheckIntervalis a field defaulting to 5s; in-package tests set it directly.Notes
releaseLeasehas no regression test: reproducing the race needs the lock's private connection. The observed failure and the fix's 4-of-20 fallback rate are recorded in the commit message.