Repository navigation
chore(jobsdb): remove jobMinRowsMigrateThres configuration option - #5763
Merged
Merged
Conversation
atzoum
requested review from
Sidddddarth,
cisse21,
Copilot,
fracasula,
ktgowtham and
mihir20
April 23, 2025 13:30
atzoum
force-pushed
the
chore.migrateTune
branch
from
April 23, 2025 13:31
7faa84d to
c177797
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR removes the deprecated jobMinRowsMigrateThres configuration option and updates the migration logic and related tests accordingly.
- Updated configuration references and renaming to jobMinRowsLeftMigrateThreshold to streamline migration behavior.
- Adjusted migration condition in migration.go and updated corresponding tests in migration_test.go and integration_test.go.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| jobsdb/migration_test.go | Updated test configuration and loop logic for dataset migration tests. |
| jobsdb/migration.go | Revised migration condition and removed the deprecated config usage. |
| jobsdb/jobsdb.go | Renamed and removed config options for migration thresholds. |
| jobsdb/integration_test.go | Updated configuration values and test assertions for dataset sizes. |
atzoum
force-pushed
the
chore.migrateTune
branch
from
April 23, 2025 13:34
c177797 to
18c7167
Compare
Sidddddarth
approved these changes
Apr 23, 2025
atzoum
force-pushed
the
chore.migrateTune
branch
from
April 23, 2025 13:43
18c7167 to
379300d
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5763 +/- ##
==========================================
- Coverage 77.03% 76.88% -0.15%
==========================================
Files 488 488
Lines 66617 66607 -10
==========================================
- Hits 51316 51211 -105
- Misses 12517 12595 +78
- Partials 2784 2801 +17 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
atzoum
force-pushed
the
chore.migrateTune
branch
from
April 24, 2025 08:59
379300d to
9891f57
Compare
cisse21
approved these changes
Apr 24, 2025
This was referenced Apr 28, 2025
Merged
Sidddddarth
pushed a commit
that referenced
this pull request
Apr 29, 2025
🤖 I have created a release *beep* *boop* --- ## [1.48.0-rc.2](v1.47.0...v1.48.0-rc.2) (2025-04-28) ### Features * introduce common http client for reporting ([#5669](#5669)) ([594bdce](594bdce)) * populate bytesPerTable for warehouse process API ([#5737](#5737)) ([fd46379](fd46379)) * query load files using upload_id instead of staging_file_id ([#5700](#5700)) ([3749ba9](3749ba9)) * support for creating upload v2 notifier jobs ([#5729](#5729)) ([dbc830f](dbc830f)) * use header augmenter for router transformer client ([#5640](#5640)) ([3749ba9](3749ba9)) ### Bug Fixes * httplb client doesn't respect connection limits ([#5773](#5773)) ([ef0a15e](ef0a15e)) * jobsdb payload limit used compressed column sizes instead of actual payload length ([#5723](#5723)) ([c711b25](c711b25)) * race condition in table schema updates causing incorrect schema to be saved ([#5756](#5756)) ([f5ab51a](f5ab51a)) * use copy to load table in append mode for redshift([#5743](#5743)) ([877da25](877da25)) * use warehouse transformer event instead of using processor event ([#5764](#5764)) ([f51e260](f51e260)) * version downgrade for databricks-sql-go to 1.6.1 ([#5741](#5741)) ([c711b25](c711b25)) * warehouse extracting messageId and receivedAt from event payload ([#5757](#5757)) ([f5ab51a](f5ab51a)) ### Miscellaneous * add destination type in metrics ([#5727](#5727)) ([fa38f34](fa38f34)) * **batchrouter:** limiter cleanup adjust stats and use harmonized config ([#5783](#5783)) ([96aba9d](96aba9d)) * change jobsdb payload column type default to text ([#5746](#5746)) ([0f436e7](0f436e7)) * configure pubsub publish settings ([#5755](#5755)) ([e481992](e481992)) * **deps:** bump google.golang.org/api from 0.228.0 to 0.229.0 in the frequent group ([#5734](#5734)) ([32854cc](32854cc)) * **deps:** bump the frequent group with 3 updates ([#5769](#5769)) ([12b7d96](12b7d96)) * disable transformer compaction by default ([#5766](#5766)) ([c504aa0](c504aa0)) * granular configuration for adaptive rate limiting ([#5739](#5739)) ([c711b25](c711b25)) * improve BRT performance ([#5730](#5730)) ([61642c8](61642c8)) * **jobsdb:** remove jobMinRowsMigrateThres configuration option ([#5763](#5763)) ([5d2fae9](5d2fae9)) * processor UT mirroring ([#5710](#5710)) ([f4f056c](f4f056c)) * remove payload logging ([#5447](#5447)) ([8e08c11](8e08c11)) * trim down tracking plan validation payload ([#5749](#5749)) ([e711579](e711579)) * use reloadable limiters ([#5744](#5744)) ([d344d40](d344d40)) * use transformer compaction by default ([#5740](#5740)) ([53792f2](53792f2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sidddddarth
pushed a commit
that referenced
this pull request
Apr 29, 2025
🤖 I have created a release *beep* *boop* --- ## [1.48.0](v1.47.0...v1.48.0) (2025-04-28) ### Features * introduce common http client for reporting ([#5669](#5669)) ([594bdce](594bdce)) * populate bytesPerTable for warehouse process API ([#5737](#5737)) ([fd46379](fd46379)) * query load files using upload_id instead of staging_file_id ([#5700](#5700)) ([3749ba9](3749ba9)) * support for creating upload v2 notifier jobs ([#5729](#5729)) ([dbc830f](dbc830f)) * use header augmenter for router transformer client ([#5640](#5640)) ([3749ba9](3749ba9)) ### Bug Fixes * httplb client doesn't respect connection limits ([#5773](#5773)) ([ef0a15e](ef0a15e)) * jobsdb payload limit used compressed column sizes instead of actual payload length ([#5723](#5723)) ([c711b25](c711b25)) * race condition in table schema updates causing incorrect schema to be saved ([#5756](#5756)) ([f5ab51a](f5ab51a)) * use copy to load table in append mode for redshift([#5743](#5743)) ([877da25](877da25)) * use warehouse transformer event instead of using processor event ([#5764](#5764)) ([f51e260](f51e260)) * version downgrade for databricks-sql-go to 1.6.1 ([#5741](#5741)) ([c711b25](c711b25)) * warehouse extracting messageId and receivedAt from event payload ([#5757](#5757)) ([f5ab51a](f5ab51a)) ### Miscellaneous * add destination type in metrics ([#5727](#5727)) ([fa38f34](fa38f34)) * **batchrouter:** limiter cleanup adjust stats and use harmonized config ([#5783](#5783)) ([96aba9d](96aba9d)) * change jobsdb payload column type default to text ([#5746](#5746)) ([0f436e7](0f436e7)) * configure pubsub publish settings ([#5755](#5755)) ([e481992](e481992)) * **deps:** bump google.golang.org/api from 0.228.0 to 0.229.0 in the frequent group ([#5734](#5734)) ([32854cc](32854cc)) * **deps:** bump the frequent group with 3 updates ([#5769](#5769)) ([12b7d96](12b7d96)) * disable transformer compaction by default ([#5766](#5766)) ([c504aa0](c504aa0)) * granular configuration for adaptive rate limiting ([#5739](#5739)) ([c711b25](c711b25)) * improve BRT performance ([#5730](#5730)) ([61642c8](61642c8)) * **jobsdb:** remove jobMinRowsMigrateThres configuration option ([#5763](#5763)) ([5d2fae9](5d2fae9)) * processor UT mirroring ([#5710](#5710)) ([f4f056c](f4f056c)) * remove payload logging ([#5447](#5447)) ([8e08c11](8e08c11)) * trim down tracking plan validation payload ([#5749](#5749)) ([e711579](e711579)) * use reloadable limiters ([#5744](#5744)) ([d344d40](d344d40)) * use transformer compaction by default ([#5740](#5740)) ([53792f2](53792f2)) --- 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
jobMinRowsLeftMigrateThresholdis now the only configuration option that controls whether a table is small or not, i.e. the migration logic will expect two small tables to exists for an actual migration to happen (a.k.a ds compaction).jobDoneMigrateThrescomparison, so that it is easier to disable this option by setting it to 1. It is now recommended to turn offjobDoneMigrateThres, so that datasets only get migrated whenever a ds compaction is possible. Migrating an incomplete dataset requires time and acquires a lock (stops-the-world), thus if this is to lead to the same number of datasets, it doesn't provide much benefit.Security