Repository navigation
fix(warehouse): stop logging full schemas on table-level schema mismatch - #7339
Merged
Merged
Conversation
GetForNamespace logged both the parent schema and the table-level schemas in full when they diverged. For wide warehouses that is a ~20MB log line, which Loki rejects (max_line_size 10MB), so the warning was lost entirely. The full cmp diff was also embedded in the returned error. Log table counts and a diff capped at 4KB instead, and return a constant error message. 🔒 Scanned for secrets using gitleaks 8.28.0
Same shape as the GetForNamespace warning: both Insert failure paths logged the full marshalled schema. Log table/column counts instead; the error already carries the actionable part. 🔒 Scanned for secrets using gitleaks 8.28.0
achettyiitr
approved these changes
Sep 2, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7339 +/- ##
==========================================
+ Coverage 79.88% 80.33% +0.45%
==========================================
Files 612 612
Lines 68673 68676 +3
==========================================
+ Hits 54856 55173 +317
+ Misses 10599 10263 -336
- Partials 3218 3240 +22 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This was referenced Sep 7, 2026
Merged
mihir20
pushed a commit
that referenced
this pull request
Sep 7, 2026
🤖 I have created a release *beep* *boop* --- ## [1.86.0-rc.1](v1.85.0...v1.86.0-rc.1) (2026-09-07) ### Features * backend config v2-to-v1 mapper ([#7315](#7315)) ([887f6d2](887f6d2)) * **core:** capture the final recorded error for failed rETL records ([#7295](#7295)) ([f4dc4d9](f4dc4d9)) * per-destination visibility at the destination-filter boundary ([#7283](#7283)) ([3d83f02](3d83f02)) * user_suppression counter via suppressed dummy jobs ([#7325](#7325)) ([77d3d37](77d3d37)) * **warehouse:** support jsonPaths for gcs datalake ([#7333](#7333)) ([e714140](e714140)) ### Bug Fixes * rsources failed-records pagination drops records across failed-key boundaries ([#7329](#7329)) ([0a50439](0a50439)) * **warehouse:** stop logging full schemas on table-level schema mismatch ([#7339](#7339)) ([f244c14](f244c14)) * **warehouse:** upgrade clickhouse v2 driver ([#7332](#7332)) ([e2c5cb9](e2c5cb9)) ### Miscellaneous * **ci:** remove unused Snyk policy file (SEC-409) ([#7317](#7317)) ([d60b3c6](d60b3c6)) * make reporting 413 handling unconditional ([#7313](#7313)) ([d2474e9](d2474e9)) * moving pyt contract tests ([#7327](#7327)) ([8316af2](8316af2)) * **processor:** pipeline attribution in processor stats ([#7326](#7326)) ([3e97f7c](3e97f7c)) * skip consent and connection-mode filtering for replays of non-existent connections ([#7323](#7323)) ([d2474e9](d2474e9)) --- 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>
mihir20
pushed a commit
that referenced
this pull request
Sep 8, 2026
🤖 I have created a release *beep* *boop* --- ## [1.86.0](v1.85.0...v1.86.0) (2026-09-07) ### Features * backend config v2-to-v1 mapper ([#7315](#7315)) ([887f6d2](887f6d2)) * **core:** capture the final recorded error for failed rETL records ([#7295](#7295)) ([f4dc4d9](f4dc4d9)) * per-destination visibility at the destination-filter boundary ([#7283](#7283)) ([3d83f02](3d83f02)) * user_suppression counter via suppressed dummy jobs ([#7325](#7325)) ([77d3d37](77d3d37)) * **warehouse:** support jsonPaths for gcs datalake ([#7333](#7333)) ([e714140](e714140)) ### Bug Fixes * rsources failed-records pagination drops records across failed-key boundaries ([#7329](#7329)) ([0a50439](0a50439)) * **warehouse:** stop logging full schemas on table-level schema mismatch ([#7339](#7339)) ([f244c14](f244c14)) * **warehouse:** upgrade clickhouse v2 driver ([#7332](#7332)) ([e2c5cb9](e2c5cb9)) ### Miscellaneous * **ci:** remove unused Snyk policy file (SEC-409) ([#7317](#7317)) ([d60b3c6](d60b3c6)) * make reporting 413 handling unconditional ([#7313](#7313)) ([d2474e9](d2474e9)) * moving pyt contract tests ([#7327](#7327)) ([8316af2](8316af2)) * **processor:** pipeline attribution in processor stats ([#7326](#7326)) ([3e97f7c](3e97f7c)) * skip consent and connection-mode filtering for replays of non-existent connections ([#7323](#7323)) ([d2474e9](d2474e9)) --- 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>
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.
Description
WHSchema.GetForNamespacelogsParent schema does not matchwith both the parent schema and the table-level schemas serialized in full. For a wide warehouse (cloudwalk's BQrudderstack_dwhas thousands ofcontext_traits_*/all_cookies_*columns) that is a ~19.9MB log line per occurrence. Loki rejects anything overmax_line_size(10MB), so the warning never reached logs — and on the node it produced 142MB of container log for 7 lines in 30 minutes. The fullcmp.Diffoutput was also embedded in the returned error.Surfaced by the
LokiMaxLineSizeExceededalert oninfra1-us; alloy-side mitigation in rudderlabs/rudder-devops#8149.Changes in
warehouse/internal/repo/schema.go:parentTables/tableLevelTablescounts and thecmp.Diff, capped at 4KB, instead of the two schemas.parent schema does not matcherror rather than one carrying the diff.stringifyimport.Insertfailure logs (Failed to update related schemas,Failed to update table-level related schemas), which logged the full marshalled schema on any DB error and run per upload. They now log table/column counts.Adds a
Table-level schema driftcase toTestWHSchemasRepo_GetForNamespace: the mismatch branch had no test before.Not changed here: the mismatch is still a hard failure, so the affected destination's uploads keep aborting until the parent and table-level rows are reconciled. That is a separate decision for the warehouse team.
Linear Ticket
None — originated from the
LokiMaxLineSizeExceededinfra alert.Security
Validation
make fmt— passed, no diffgo build ./warehouse/...— passedgo test -count 1 -run TestWHSchemasRepo_GetForNamespace ./warehouse/internal/repo/— passed (ok 8.711s)golangci-lint v2.9.0 run ./warehouse/internal/repo/...— 0 issuesgit diff --check— passed