Skip to content

chore: partition migration stress test and improvements - #6802

Merged
atzoum merged 2 commits into
masterfrom
chore.partitionMigrationStress
Mar 27, 2026
Merged

atzoum merged 2 commits into
masterfrom
chore.partitionMigrationStress

Conversation

@atzoum

@atzoum atzoum commented Mar 24, 2026 •

Copy link
Copy Markdown
Contributor

🔒 Scanned for secrets using gitleaks 8.30.0

Description

  • Add stress test scenarios to the gateway/processor partition migration test, simulating migrations with up to 5,000 partitions per job.
  • Truncate partition ID lists in log messages to prevent excessively long log lines when migrating a large number of partitions.
  • Add retry logic with backoff for transient 502 errors in the test gateway client.
  • Adjust test timeouts and JobsDB configuration to accommodate high-partition-count scenarios.

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@atzoum
atzoum force-pushed the chore.partitionMigrationStress branch from 33a4459 to a27652d Compare March 24, 2026 13:23
@atzoum
atzoum requested review from ktgowtham and mihir20 March 24, 2026 14:06
@atzoum
atzoum marked this pull request as ready for review March 24, 2026 14:06
@ktgowtham

Copy link
Copy Markdown
Contributor

tests are failing

atzoum added 2 commits March 25, 2026 20:52
🔒 Scanned for secrets using gitleaks 8.30.0
🔒 Scanned for secrets using gitleaks 8.30.0
@atzoum
atzoum force-pushed the chore.partitionMigrationStress branch from 0f17477 to e315e3f Compare March 25, 2026 18:53
@codecov

codecov Bot commented Mar 25, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.33333% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.76%. Comparing base (ac501c8) to head (e315e3f).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
...artitionmigration/client/migration_job_executor.go 50.00% 1 Missing ⚠️
jobsdb/internal/cache/cache.go 0.00% 1 Missing ⚠️
utils/misc/misc.go 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6802      +/-   ##
==========================================
+ Coverage   79.74%   79.76%   +0.01%     
==========================================
  Files         565      565              
  Lines       63294    63298       +4     
==========================================
+ Hits        50476    50491      +15     
+ Misses       9841     9832       -9     
+ Partials     2977     2975       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mihir20 mihir20 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@atzoum
atzoum requested a review from itsmihir March 27, 2026 06:09
@atzoum
atzoum merged commit 419818a into master Mar 27, 2026
80 of 86 checks passed
@atzoum
atzoum deleted the chore.partitionMigrationStress branch March 27, 2026 08:03
This was referenced Mar 30, 2026
itsmihir pushed a commit that referenced this pull request Mar 30, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.72.0-rc.1](v1.71.0...v1.72.0-rc.1)
(2026-03-30)


### Features

* **jobsdb:** migration optimizations for large number of datasets
([#6786](#6786))
([641f9fd](641f9fd))


### Bug Fixes

* language label
([#6809](#6809))
([ac501c8](ac501c8))
* mirroring round trip comparison
([#6813](#6813))
([57a079b](57a079b))


### Miscellaneous

* partition migration stress test and improvements
([#6802](#6802))
([419818a](419818a))
* sync release v1.71.0 to main branch
([#6801](#6801))
([6a6ee90](6a6ee90))

---
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 was referenced Mar 30, 2026
itsmihir pushed a commit that referenced this pull request Mar 30, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.72.0-rc.2](v1.71.0...v1.72.0-rc.2)
(2026-03-30)


### Features

* **jobsdb:** migration optimizations for large number of datasets
([#6786](#6786))
([641f9fd](641f9fd))


### Bug Fixes

* language label
([#6809](#6809))
([ac501c8](ac501c8))
* mirroring round trip comparison
([#6813](#6813))
([57a079b](57a079b))
* sanity checks
([#6817](#6817))
([2969e3e](2969e3e))


### Miscellaneous

* partition migration stress test and improvements
([#6802](#6802))
([419818a](419818a))
* sync release v1.71.0 to main branch
([#6801](#6801))
([6a6ee90](6a6ee90))

---
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>
itsmihir pushed a commit that referenced this pull request Mar 31, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.72.0](v1.71.0...v1.72.0)
(2026-03-30)


### Features

* **jobsdb:** migration optimizations for large number of datasets
([#6786](#6786))
([641f9fd](641f9fd))


### Bug Fixes

* language label
([#6809](#6809))
([ac501c8](ac501c8))
* mirroring round trip comparison
([#6813](#6813))
([57a079b](57a079b))
* sanity checks
([#6817](#6817))
([2969e3e](2969e3e))


### Miscellaneous

* partition migration stress test and improvements
([#6802](#6802))
([419818a](419818a))
* sync release v1.71.0 to main branch
([#6801](#6801))
([6a6ee90](6a6ee90))

---
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants