Repository navigation
feat(jobsdb): introduce compaction min ds age - #7077
Merged
Merged
Conversation
atzoum
marked this pull request as draft
June 10, 2026 06:39
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #7077 +/- ##
==========================================
+ Coverage 79.49% 79.89% +0.40%
==========================================
Files 583 583
Lines 65088 65106 +18
==========================================
+ Hits 51743 52018 +275
+ Misses 10265 10011 -254
+ Partials 3080 3077 -3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
atzoum
force-pushed
the
feat.compactionMinDSAge
branch
2 times, most recently
from
June 11, 2026 12:39
1af0826 to
4be6af0
Compare
atzoum
marked this pull request as ready for review
June 11, 2026 12:49
atzoum
force-pushed
the
feat.compactionMinDSAge
branch
from
June 11, 2026 12:58
4be6af0 to
dbefd86
Compare
🔒 Scanned for secrets using gitleaks 8.30.1
atzoum
force-pushed
the
feat.compactionMinDSAge
branch
from
June 12, 2026 06:56
dbefd86 to
86a241a
Compare
This was referenced Jun 12, 2026
ktgowtham
approved these changes
Jun 12, 2026
This was referenced Jun 22, 2026
Closed
Merged
atzoum
pushed a commit
that referenced
this pull request
Jun 23, 2026
🤖 I have created a release *beep* *boop* --- ## [1.78.0-rc.1](v1.77.0...v1.78.0-rc.1) (2026-06-22) ### Features * add and register bq stream v2 async destination manager ([#7057](#7057)) ([787b7ac](787b7ac)) * add BQSTREAM_V2 destination type and bqstreamv2 building blocks ([#7056](#7056)) ([02e84e5](02e84e5)) * **batchrouter:** raise getImportingJobs max iterations and remove payload size limit ([#7076](#7076)) ([15707f6](15707f6)) * **gateway:** throttling support for internal batch endpoint ([#7055](#7055)) ([6b6ba65](6b6ba65)) * **jobsdb:** introduce compaction min ds age ([#7077](#7077)) ([4d6d97a](4d6d97a)) * **processor:** new intermediate jobsdb ([#7048](#7048)) ([dfef1f1](dfef1f1)) ### Bug Fixes * abort non-retryable Klaviyo upload errors instead of retrying ([#7085](#7085)) ([4c3e4f1](4c3e4f1)) * **batchrouter:** correlate poll results by externalId instead of whole-row hash ([09326d2](09326d2)) * **batchrouter:** report real status code and sample event for drained jobs ([#7104](#7104)) ([d3fab82](d3fab82)) * internal endpoints enabled in open source version of rudder-server ([#7075](#7075)) ([dc071cd](dc071cd)) * **jobsdb:** get jobs lateral join against the v_last view ([#7105](#7105)) ([853d14c](853d14c)) * klaviyo upload partial failures ([#7107](#7107)) ([37e79e9](37e79e9)) * **router:** shared barrier causing illegal job sequence errors ([#7101](#7101)) ([b5435ba](b5435ba)) ### Miscellaneous * add BQSTREAM_V2 integration tests ([#7058](#7058)) ([478e217](478e217)) * add rudderai announcement ([#7046](#7046)) ([ff02fe8](ff02fe8)) * bump codecov-action to 7.0.0 ([#7070](#7070)) ([31f0623](31f0623)) * cleanup embedded warehouse transformations ([#7072](#7072)) ([31f0623](31f0623)) * **deps:** bump actions/checkout from 6.0.2 to 6.0.3 ([#7084](#7084)) ([745d5ab](745d5ab)) * **deps:** bump aws-actions/configure-aws-credentials from 6.1.2 to 6.2.0 ([#7081](#7081)) ([19251cd](19251cd)) * **jobsdb:** refactoring and cleanup ([#7043](#7043)) ([2e4ea92](2e4ea92)) * remove legacy warehouse endpoints ([#7090](#7090)) ([6f85153](6f85153)) * rename bqstream all events ([#7088](#7088)) ([4d9ad19](4d9ad19)) * **router:** rename experimental buffer size calculator to dynamic ([#7103](#7103)) ([52896cd](52896cd)) * support using the full event schema key as pulsar ordering key ([#7086](#7086)) ([ff50611](ff50611)) --- 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>
atzoum
pushed a commit
that referenced
this pull request
Jun 23, 2026
🤖 I have created a release *beep* *boop* --- ## [1.78.0](v1.77.0...v1.78.0) (2026-06-22) ### Features * add and register bq stream v2 async destination manager ([#7057](#7057)) ([787b7ac](787b7ac)) * add BQSTREAM_V2 destination type and bqstreamv2 building blocks ([#7056](#7056)) ([02e84e5](02e84e5)) * **batchrouter:** raise getImportingJobs max iterations and remove payload size limit ([#7076](#7076)) ([15707f6](15707f6)) * **gateway:** throttling support for internal batch endpoint ([#7055](#7055)) ([6b6ba65](6b6ba65)) * **jobsdb:** introduce compaction min ds age ([#7077](#7077)) ([4d6d97a](4d6d97a)) * **processor:** new intermediate jobsdb ([#7048](#7048)) ([dfef1f1](dfef1f1)) ### Bug Fixes * abort non-retryable Klaviyo upload errors instead of retrying ([#7085](#7085)) ([4c3e4f1](4c3e4f1)) * **batchrouter:** correlate poll results by externalId instead of whole-row hash ([09326d2](09326d2)) * **batchrouter:** report real status code and sample event for drained jobs ([#7104](#7104)) ([d3fab82](d3fab82)) * internal endpoints enabled in open source version of rudder-server ([#7075](#7075)) ([dc071cd](dc071cd)) * **jobsdb:** get jobs lateral join against the v_last view ([#7105](#7105)) ([853d14c](853d14c)) * klaviyo upload partial failures ([#7107](#7107)) ([37e79e9](37e79e9)) * **router:** shared barrier causing illegal job sequence errors ([#7101](#7101)) ([b5435ba](b5435ba)) ### Miscellaneous * add BQSTREAM_V2 integration tests ([#7058](#7058)) ([478e217](478e217)) * add rudderai announcement ([#7046](#7046)) ([ff02fe8](ff02fe8)) * bump codecov-action to 7.0.0 ([#7070](#7070)) ([31f0623](31f0623)) * cleanup embedded warehouse transformations ([#7072](#7072)) ([31f0623](31f0623)) * **deps:** bump actions/checkout from 6.0.2 to 6.0.3 ([#7084](#7084)) ([745d5ab](745d5ab)) * **deps:** bump aws-actions/configure-aws-credentials from 6.1.2 to 6.2.0 ([#7081](#7081)) ([19251cd](19251cd)) * **jobsdb:** refactoring and cleanup ([#7043](#7043)) ([2e4ea92](2e4ea92)) * remove legacy warehouse endpoints ([#7090](#7090)) ([6f85153](6f85153)) * rename bqstream all events ([#7088](#7088)) ([4d9ad19](4d9ad19)) * **router:** rename experimental buffer size calculator to dynamic ([#7103](#7103)) ([52896cd](52896cd)) * support using the full event schema key as pulsar ordering key ([#7086](#7086)) ([ff50611](ff50611)) --- 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
Without a minimum age guard, newly created datasets, whether written by normal ingestion or created as a compaction destination, can be picked up for compaction almost immediately, before workers have had a chance to process all their jobs. This causes premature I/O churn: jobs get moved again with little benefit.
This PR introduces
compactionMinDSAge(default:2m): partially-processed datasets are skipped for compaction until they reach this minimum age, giving workers a processing window before a dataset becomes eligible. The age is read from a creation timestamp stored as a PostgreSQL table comment on each jobs table.Fully-processed datasets and datasets without a recorded creation time are unaffected.
Config:
JobsDB.compactionMinDSAge(reloadable)Linear Ticket
resolves PIPE-3114
Security
This is part 1 of 3 in a stack made with GitButler: