Repository navigation
fix: rsources failed-records pagination drops records across failed-key boundaries - #7329
Merged
Merged
Conversation
atzoum
force-pushed
the
fix/rsources-failed-records-keyset-pagination
branch
from
September 1, 2026 09:12
d477db3 to
71662aa
Compare
…et cursor Co-Authored-By: Claude Fable 5 <[email protected]> 🔒 Scanned for secrets using gitleaks 8.30.1
atzoum
force-pushed
the
fix/rsources-failed-records-keyset-pagination
branch
from
September 1, 2026 09:14
71662aa to
9c2e483
Compare
atzoum
requested review from
fracasula,
itsmihir,
ktgowtham,
kuldeep0020 and
mihir20
September 1, 2026 09:14
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7329 +/- ##
==========================================
- Coverage 79.84% 79.77% -0.07%
==========================================
Files 611 611
Lines 68316 68316
==========================================
- Hits 54545 54498 -47
- Misses 10566 10602 +36
- Partials 3205 3216 +11 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ktgowtham
approved these changes
Sep 1, 2026
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
GetFailedRecordspaginates withr.id >= $2 AND r.record_id > $3, which applies therecord_idbound to every failed key, not just the cursor's: any record in a later key whoserecord_idsorts at or below the cursor is silently dropped from all subsequent pages. Fixed by using a row-value comparison,(r.id, r.record_id) > ($2, $3), which selects exactly the rows after the cursor in the query'sORDER BY (id, record_id). Added a regression test paging a job run with two failed keys holding overlapping record ids.Note
In practice this has not been an issue so far, since retl uses one job run id and one task run id per sync.
Security
🤖 Generated with Claude Code