Repository navigation
fix: invalidate warehouse schema cache in case of export error - #6131
Merged
Merged
Conversation
achettyiitr
reviewed
Jul 17, 2025
Comment on lines
412
to
417
Member
There was a problem hiding this comment.
Why just logging. It's a db call which should succeeded?
Member
There was a problem hiding this comment.
Or planning to add an alert for it later?
Member
Author
There was a problem hiding this comment.
- The sync has already failed. So we will be returning an error message. Are you suggesting to append the invalidation error to the original error ?
- No plans to add alert.
Member
There was a problem hiding this comment.
If there is no plans of adding alert, how will we know if it succeeded?
Member
Author
There was a problem hiding this comment.
Alert for this invalidation feels like an overkill. WDYT ?
achettyiitr
reviewed
Jul 17, 2025
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6131 +/- ##
=======================================
Coverage 76.55% 76.56%
=======================================
Files 523 523
Lines 70380 70390 +10
=======================================
+ Hits 53881 53893 +12
- Misses 13556 13557 +1
+ Partials 2943 2940 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
achettyiitr
approved these changes
Jul 21, 2025
vyeshwanth
approved these changes
Jul 23, 2025
shekhar-rudder
force-pushed
the
war-937-schema-expiry
branch
from
July 24, 2025 05:43
64730ed to
ef22e7c
Compare
This was referenced Jul 29, 2025
Merged
mihir20
pushed a commit
that referenced
this pull request
Jul 29, 2025
🤖 I have created a release *beep* *boop* --- ## [1.56.0-rc.1](v1.55.0...v1.56.0-rc.1) (2025-07-29) ### Features * change datatype from jsonb to text for warehouse ([#6118](#6118)) ([bf90708](bf90708)) * enable lz4 compression for warehouse ([#6119](#6119)) ([c8afe87](c8afe87)) * stats for notifier repo module ([#6184](#6184)) ([44a0e9f](44a0e9f)) * stats for warehouse repo module ([#6179](#6179)) ([07c0391](07c0391)) ### Bug Fixes * add validation to adjustedConversionTime ([#6092](#6092)) ([e33bbf9](e33bbf9)) * dangling connection start time not being logged properly ([#6157](#6157)) ([965e099](965e099)) * invalidate warehouse schema cache in case of export error ([#6131](#6131)) ([c04a953](c04a953)) * load files not being regenerated if schema is outdated ([#6149](#6149)) ([0b26aed](0b26aed)) * negative MTU count ([#6180](#6180)) ([ecdd64f](ecdd64f)) * **router:** timeout doesn't reset when there are no jobs ([#6171](#6171)) ([1e66738](1e66738)) * **router:** worker's batch timeout is getting resetted after new job arrival ([#6167](#6167)) ([1e66738](1e66738)) * schema not being fetched from warehouse for new warehouse destinations ([#6128](#6128)) ([6e13cd4](6e13cd4)) * snowpipe events getting duplicated if status API fails ([#6125](#6125)) ([2c11854](2c11854)) * update warehouse schema expiry only when fetched from warehouse ([#6130](#6130)) ([e0ded8c](e0ded8c)) * **warehouse:** add mutex to mockStageFilesRepo to prevent data race in tests (WAR-960 ([#6156](#6156)) ([29c6f01](29c6f01)) ### Miscellaneous * bump the go deps group across 1 directory with 12 updates ([#6178](#6178)) ([f57c6e5](f57c6e5)) * clean up processor vars ([#6159](#6159)) ([0dbc721](0dbc721)) * cleanup aws v1 ([#6113](#6113)) ([be1fb41](be1fb41)) * **jobsdb:** introduce context with timeout during add new ds loop ([#6150](#6150)) ([1a151c9](1a151c9)) * **jobsdb:** remove foreign key constraint ([#6154](#6154)) ([6de673f](6de673f)) * modifications and tests related chagnes for the warehouse lz4 and jsonb to text conversion ([#6185](#6185)) ([a043353](a043353)) * modifications and tests related changes for the notifier lz4 and jsonb to text conversion ([#6183](#6183)) ([918044b](918044b)) * **router:** separate worker loop batching logic from processing logic ([#6173](#6173)) ([af4703d](af4703d)) * sync release v1.55.0 to main branch ([#6158](#6158)) ([3d2156b](3d2156b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
itsmihir
pushed a commit
that referenced
this pull request
Jul 29, 2025
🤖 I have created a release *beep* *boop* --- ## [1.56.0-rc.2](v1.55.0...v1.56.0-rc.2) (2025-07-29) ### Features * change datatype from jsonb to text for warehouse ([#6118](#6118)) ([bf90708](bf90708)) * enable lz4 compression for warehouse ([#6119](#6119)) ([c8afe87](c8afe87)) * stats for notifier repo module ([#6184](#6184)) ([44a0e9f](44a0e9f)) * stats for warehouse repo module ([#6179](#6179)) ([07c0391](07c0391)) ### Bug Fixes * add validation to adjustedConversionTime ([#6092](#6092)) ([e33bbf9](e33bbf9)) * dangling connection start time not being logged properly ([#6157](#6157)) ([965e099](965e099)) * invalidate warehouse schema cache in case of export error ([#6131](#6131)) ([c04a953](c04a953)) * load files not being regenerated if schema is outdated ([#6149](#6149)) ([0b26aed](0b26aed)) * negative MTU count ([#6180](#6180)) ([ecdd64f](ecdd64f)) * overwrite payloadStage in error response for aborted jobs ([#6193](#6193)) ([5d82fa7](5d82fa7)) * **router:** timeout doesn't reset when there are no jobs ([#6171](#6171)) ([1e66738](1e66738)) * **router:** worker's batch timeout is getting resetted after new job arrival ([#6167](#6167)) ([1e66738](1e66738)) * schema not being fetched from warehouse for new warehouse destinations ([#6128](#6128)) ([6e13cd4](6e13cd4)) * snowpipe events getting duplicated if status API fails ([#6125](#6125)) ([2c11854](2c11854)) * update warehouse schema expiry only when fetched from warehouse ([#6130](#6130)) ([e0ded8c](e0ded8c)) * **warehouse:** add mutex to mockStageFilesRepo to prevent data race in tests (WAR-960 ([#6156](#6156)) ([29c6f01](29c6f01)) ### Miscellaneous * bump the go deps group across 1 directory with 12 updates ([#6178](#6178)) ([f57c6e5](f57c6e5)) * clean up processor vars ([#6159](#6159)) ([0dbc721](0dbc721)) * cleanup aws v1 ([#6113](#6113)) ([be1fb41](be1fb41)) * **jobsdb:** introduce context with timeout during add new ds loop ([#6150](#6150)) ([1a151c9](1a151c9)) * **jobsdb:** remove foreign key constraint ([#6154](#6154)) ([6de673f](6de673f)) * modifications and tests related chagnes for the warehouse lz4 and jsonb to text conversion ([#6185](#6185)) ([a043353](a043353)) * modifications and tests related changes for the notifier lz4 and jsonb to text conversion ([#6183](#6183)) ([918044b](918044b)) * **router:** separate worker loop batching logic from processing logic ([#6173](#6173)) ([af4703d](af4703d)) * sync release v1.55.0 to main branch ([#6158](#6158)) ([3d2156b](3d2156b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
mihir20
pushed a commit
that referenced
this pull request
Jul 30, 2025
🤖 I have created a release *beep* *boop* --- ## [1.56.0](v1.55.0...v1.56.0) (2025-07-29) ### Features * change datatype from jsonb to text for warehouse ([#6118](#6118)) ([bf90708](bf90708)) * enable lz4 compression for warehouse ([#6119](#6119)) ([c8afe87](c8afe87)) * stats for notifier repo module ([#6184](#6184)) ([44a0e9f](44a0e9f)) * stats for warehouse repo module ([#6179](#6179)) ([07c0391](07c0391)) ### Bug Fixes * add validation to adjustedConversionTime ([#6092](#6092)) ([e33bbf9](e33bbf9)) * dangling connection start time not being logged properly ([#6157](#6157)) ([965e099](965e099)) * invalidate warehouse schema cache in case of export error ([#6131](#6131)) ([c04a953](c04a953)) * load files not being regenerated if schema is outdated ([#6149](#6149)) ([0b26aed](0b26aed)) * negative MTU count ([#6180](#6180)) ([ecdd64f](ecdd64f)) * overwrite payloadStage in error response for aborted jobs ([#6193](#6193)) ([5d82fa7](5d82fa7)) * **router:** timeout doesn't reset when there are no jobs ([#6171](#6171)) ([1e66738](1e66738)) * **router:** worker's batch timeout is getting resetted after new job arrival ([#6167](#6167)) ([1e66738](1e66738)) * schema not being fetched from warehouse for new warehouse destinations ([#6128](#6128)) ([6e13cd4](6e13cd4)) * snowpipe events getting duplicated if status API fails ([#6125](#6125)) ([2c11854](2c11854)) * update warehouse schema expiry only when fetched from warehouse ([#6130](#6130)) ([e0ded8c](e0ded8c)) * **warehouse:** add mutex to mockStageFilesRepo to prevent data race in tests (WAR-960 ([#6156](#6156)) ([29c6f01](29c6f01)) ### Miscellaneous * bump the go deps group across 1 directory with 12 updates ([#6178](#6178)) ([f57c6e5](f57c6e5)) * clean up processor vars ([#6159](#6159)) ([0dbc721](0dbc721)) * cleanup aws v1 ([#6113](#6113)) ([be1fb41](be1fb41)) * **jobsdb:** introduce context with timeout during add new ds loop ([#6150](#6150)) ([1a151c9](1a151c9)) * **jobsdb:** remove foreign key constraint ([#6154](#6154)) ([6de673f](6de673f)) * modifications and tests related chagnes for the warehouse lz4 and jsonb to text conversion ([#6185](#6185)) ([a043353](a043353)) * modifications and tests related changes for the notifier lz4 and jsonb to text conversion ([#6183](#6183)) ([918044b](918044b)) * **router:** separate worker loop batching logic from processing logic ([#6173](#6173)) ([af4703d](af4703d)) * sync release v1.55.0 to main branch ([#6158](#6158)) ([3d2156b](3d2156b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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
The warehouse schema cache can become outdated, leading to persistent data export failures until the cache expires. To improve reliability, the schema cache should be invalidated immediately upon encountering a sync error during data export. This ensures that the next export attempt fetches the latest schema, reducing the risk of repeated failures due to schema drift. The invalidation should be limited to cases where a sync error occurs during data delivery, and a log entry should be created whenever invalidation happens. This change will help the system recover more quickly from schema mismatches and improve overall data delivery robustness.
Linear Ticket
https://linear.app/rudderstack/issue/WAR-937
Security