Repository navigation
fix(batchrouter): retry failed async manager initialization - #7374
achettyiitr merged 14 commits into
Conversation
|
👋 I'm rudder-devbox. I opened this PR from a Linear ticket. Mention |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7374 +/- ##
==========================================
+ Coverage 79.93% 80.35% +0.41%
==========================================
Files 619 620 +1
Lines 69465 69508 +43
==========================================
+ Hits 55528 55850 +322
+ Misses 10688 10389 -299
- Partials 3249 3269 +20 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
I fixed the CI failure and pushed the change. Root cause from the failed job log: Fix: Validation:
Commit: 8851e5a |
|
Knowledge distillation completed |
|
I fixed the verify failures and pushed the follow-up commit. Root cause from the logs:
Fix:
Validation:
Commit: 96b82ae |
|
Knowledge distillation completed |
|
I fixed the generated-files verify failure and pushed the change. Root cause from the log: the Fix: applied the same Validation:
Commit: a3ba29b |
|
Knowledge distillation completed |
|
I fixed the lint failure and pushed the change. Root cause from the log: Fix: lowercased that Eloqua parse error string and updated the focused test expectation to match. Validation:
Commit: f9f412e |
|
Knowledge distillation completed |
🤖 I have created a release *beep* *boop* --- ## [1.87.0-rc.4](v1.86.0...v1.87.0-rc.4) (2026-09-15) ### Features * backend config shadow mode ([#7340](#7340)) ([4898165](4898165)) * bump rudder-go-kit and go modules to Go 1.27.1 ([#7345](#7345)) ([8d95c68](8d95c68)) * **router:** read transformerProxy from transformer features before env ([#7337](#7337)) ([e8f0ea6](e8f0ea6)) ### Bug Fixes * **batchrouter:** retry failed async manager initialization ([#7374](#7374)) ([974d383](974d383)) * **router:** redact credentials from destination URLs in failure responses ([#7372](#7372)) ([14659bf](14659bf)) * **router:** request fails with unexpected use of stub RoundTripper error ([#7386](#7386)) ([2ff491f](2ff491f)) * singer-protocol sources filtered destination config for source type cloud instead of cloudSource ([#7389](#7389)) ([f48c997](f48c997)) * **warehouse:** instrument the clickhouse v2 load path ([#7355](#7355)) ([4d743db](4d743db)) * **warehouse:** pass temporary credentials to the clickhouse v2 s3 copy engine ([#7353](#7353)) ([4d743db](4d743db)) * **warehouse:** retire idle clickhouse v2 connections ([#7352](#7352)) ([4d743db](4d743db)) * **warehouse:** retry a failed clickhouse v2 block ([#7354](#7354)) ([4d743db](4d743db)) ### Miscellaneous * log the candidate error when a backend config shadow sample fails to fetch ([#7383](#7383)) ([eaa9b61](eaa9b61)) * **processor:** assemble side-PU report metrics at end of preprocess stage ([#7346](#7346)) ([4540876](4540876)) * sync release v1.86.0 to main branch ([#7356](#7356)) ([6868c6c](6868c6c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## [1.87.0](v1.86.0...v1.87.0) (2026-09-15) ### Features * backend config shadow mode ([#7340](#7340)) ([4898165](4898165)) * bump rudder-go-kit and go modules to Go 1.27.1 ([#7345](#7345)) ([8d95c68](8d95c68)) * **router:** read transformerProxy from transformer features before env ([#7337](#7337)) ([e8f0ea6](e8f0ea6)) ### Bug Fixes * **batchrouter:** retry failed async manager initialization ([#7374](#7374)) ([974d383](974d383)) * **router:** redact credentials from destination URLs in failure responses ([#7372](#7372)) ([14659bf](14659bf)) * **router:** request fails with unexpected use of stub RoundTripper error ([#7386](#7386)) ([2ff491f](2ff491f)) * singer-protocol sources filtered destination config for source type cloud instead of cloudSource ([#7389](#7389)) ([f48c997](f48c997)) * **warehouse:** instrument the clickhouse v2 load path ([#7355](#7355)) ([4d743db](4d743db)) * **warehouse:** pass temporary credentials to the clickhouse v2 s3 copy engine ([#7353](#7353)) ([4d743db](4d743db)) * **warehouse:** retire idle clickhouse v2 connections ([#7352](#7352)) ([4d743db](4d743db)) * **warehouse:** retry a failed clickhouse v2 block ([#7354](#7354)) ([4d743db](4d743db)) ### Miscellaneous * log the candidate error when a backend config shadow sample fails to fetch ([#7383](#7383)) ([eaa9b61](eaa9b61)) * **processor:** assemble side-PU report metrics at end of preprocess stage ([#7346](#7346)) ([4540876](4540876)) * sync release v1.86.0 to main branch ([#7356](#7356)) ([6868c6c](6868c6c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
Description
Adds self-healing retry behavior for async batch router destinations whose manager constructor fails transiently.
Failed async manager initialization now records
FailedAt. The existing backend config refresh path callsrefreshDestination, and that path now retries an unchanged destination only when its current manager is anInvalidManagerandBatchRouter.invalidManagerRetryIntervalhas elapsed. The retry interval defaults to 15 minutes and remains reloadable through the existing config system. Healthy same-revision managers still skip re-initialization, and RevisionID changes still reinitialize immediately.This keeps the change scoped to async manager lifecycle handling. There is no separate retry goroutine, no async upload-path rewrite, and no warehouse test change in the final PR diff.
Eloqua login/base-endpoint errors now include request context, non-200 status/body diagnostics, parse failures with response body, and an explicit missing
urls.baseerror.Linear Ticket
PIPE-3356
Security
Validation
make -C /workspace/rudder-server fmt- passedgo test -count 1 -run 'Test.*InvalidManager|Test.*RefreshDestination|TestAsyncDestinationManager|TestGetBaseEndpoint' ./router/batchrouter/...- passedgo test -count 1 ./router/batchrouter- passedmake -C /workspace/rudder-server lintreached golangci-lint/actionlint successfully but failed in thesecstep on pre-existing unrelated gitleaks findings.Known Issues
make lintfails in thesecstep because gitleaks reports existing leaks unrelated to this change, includingbackend-config/testdata/sample_namespace.json,processor/processorBenchmark_test.go,regulation-worker/cmd/main_test.go,router/batchrouter/testdata/brtIsolationTestTemplate.json.tpl,rudder-docker.yml,services/debugger/source/eventUploader_test.go,services/streammanager/googlesheets/googlesheetsmanager_test.go,services/streammanager/streammanager_suite_test.go,utils/misc/misc_test.go,warehouse/internal/api/testdata/process_request_missing_schema.json,warehouse/utils/utils.go, andwarehouse/utils/utils_test.go.