Skip to content

feat: support concurrency during partition migration flushing - #6929

Merged
atzoum merged 2 commits into
masterfrom
chore.flushConcurrency
May 12, 2026
Merged

atzoum merged 2 commits into
masterfrom
chore.flushConcurrency

Conversation

@atzoum

@atzoum atzoum commented Apr 29, 2026 •

Copy link
Copy Markdown
Contributor

🔒 Scanned for secrets using gitleaks 8.30.1

Description

Adds a reloadable PartitionMigration.bufferFlushMoveConcurrency config (default 1) that controls how many goroutines distribute partitions during the move phase of a flush.

The motivation is to be able to maximize flush throughput when a single partition migration job is running, without having to restart the job to take effect — hence the config is reloadable.

Linear Ticket

resolves PIPE-2951

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.flushConcurrency branch from 1454cf6 to 4024c2b Compare April 29, 2026 18:44
@codecov

codecov Bot commented Apr 29, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 45.00000% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.71%. Comparing base (73d3bbe) to head (79a0301).

Files with missing lines Patch % Lines
...r/partitionbuffer/jobsdb_partition_buffer_flush.go 31.25% 21 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6929      +/-   ##
==========================================
- Coverage   80.06%   79.71%   -0.36%     
==========================================
  Files         565      565              
  Lines       63412    63448      +36     
==========================================
- Hits        50772    50578     -194     
- Misses       9646     9878     +232     
+ Partials     2994     2992       -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.

@atzoum
atzoum marked this pull request as ready for review April 30, 2026 09:55
@atzoum
atzoum force-pushed the chore.flushConcurrency branch from 4024c2b to de5dc7a Compare May 2, 2026 14:33

@fracasula fracasula left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

atzoum added 2 commits May 8, 2026 14:36
🔒 Scanned for secrets using gitleaks 8.30.1
🔒 Scanned for secrets using gitleaks 8.30.1
@atzoum
atzoum force-pushed the chore.flushConcurrency branch from 60b82a4 to 79a0301 Compare May 8, 2026 11:36
@atzoum
atzoum merged commit dd2f658 into master May 12, 2026
108 of 111 checks passed
@atzoum
atzoum deleted the chore.flushConcurrency branch May 12, 2026 09:33
This was referenced May 12, 2026
itsmihir pushed a commit that referenced this pull request May 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.75.0-rc.1](v1.74.0...v1.75.0-rc.1)
(2026-05-12)


### Features

* snowpipe batch status
([#6926](#6926))
([f00dd89](f00dd89))
* support clickhouse day week month partitions
([#6931](#6931))
([00ff494](00ff494))
* support concurrency during partition migration flushing
([#6929](#6929))
([dd2f658](dd2f658))


### Bug Fixes

* **router:** delays in finding worker slots when event ordering is
disabled
([#6930](#6930))
([a7389f8](a7389f8))
* rsources failed keys batch fails to be inserted with postgres error
21000 ([#6940](#6940))
([3c7a1ec](3c7a1ec))
* salesforce bulk upload null and numeric CSV formatting
([#6923](#6923))
([5e67a45](5e67a45))


### Miscellaneous

* debug snowpipe streaming importing job size
([#6941](#6941))
([73d3bbe](73d3bbe))
* filtering overflow events for snowpipe streaming above 16MB
([#6921](#6921))
([2e5192b](2e5192b))
* pyt managed session
([#6910](#6910))
([c7aa7c4](c7aa7c4))
* remove deprecated fetch-tables endpoint
([#6944](#6944))
([fdb2649](fdb2649))
* sync release v1.74.0 to main branch
([#6920](#6920))
([e844f82](e844f82))
* workflow cleanup
([#6924](#6924))
([da7161d](da7161d))

---
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 May 14, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.75.0](v1.74.0...v1.75.0)
(2026-05-12)


### Features

* snowpipe batch status
([#6926](#6926))
([f00dd89](f00dd89))
* support clickhouse day week month partitions
([#6931](#6931))
([00ff494](00ff494))
* support concurrency during partition migration flushing
([#6929](#6929))
([dd2f658](dd2f658))


### Bug Fixes

* **router:** delays in finding worker slots when event ordering is
disabled
([#6930](#6930))
([a7389f8](a7389f8))
* rsources failed keys batch fails to be inserted with postgres error
21000 ([#6940](#6940))
([3c7a1ec](3c7a1ec))
* salesforce bulk upload null and numeric CSV formatting
([#6923](#6923))
([5e67a45](5e67a45))


### Miscellaneous

* debug snowpipe streaming importing job size
([#6941](#6941))
([73d3bbe](73d3bbe))
* filtering overflow events for snowpipe streaming above 16MB
([#6921](#6921))
([2e5192b](2e5192b))
* pyt managed session
([#6910](#6910))
([c7aa7c4](c7aa7c4))
* remove deprecated fetch-tables endpoint
([#6944](#6944))
([fdb2649](fdb2649))
* sync release v1.74.0 to main branch
([#6920](#6920))
([e844f82](e844f82))
* workflow cleanup
([#6924](#6924))
([da7161d](da7161d))

---
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.

3 participants