Skip to content

fix: preserve order when overflowing snowpipe insert batches - #7178

Merged
achettyiitr merged 2 commits into
release/1.80.xfrom
harness/RUD-2977-fix-preserve-order-when-overflo-249b4bc9
Jul 15, 2026
Merged

achettyiitr merged 2 commits into
release/1.80.xfrom
harness/RUD-2977-fix-preserve-order-when-overflo-249b4bc9

Conversation

@rudder-devbox

@rudder-devbox rudder-devbox Bot commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Description

Summary

  • Abort Snowpipe Streaming events whose individual payload size exceeds maxInsertRequestSizeBytes, and continue uploading remaining events instead of failing/retrying them forever.
  • Keep cumulative overflow behavior: when a batch would exceed the limit, mark the rest as failed to preserve job order on retry; individually oversized events in that remainder are still aborted.
  • Raise the default SnowpipeStreaming.maxInsertRequestSizeBytes from 16MB to 24MB.
  • Add Upload and unit-test coverage for abort-and-continue, all-oversized batches, mixed overflow+abort, and sequences like safe → oversized → safe → overflow → oversized → overflow.

Validation

  • go test ./router/batchrouter/asyncdestinationmanager/snowpipestreaming -run TestSplitEventsExceedingMaxInsertRequestSize
  • go test ./router/batchrouter/asyncdestinationmanager/snowpipestreaming

Linear Ticket

INT-6803

Security

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

@rudder-devbox

rudder-devbox Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

👋 I'm rudder-devbox. I opened this PR from a Linear ticket.

Mention @devbox or @rudder-devbox and I'll act on it — on a top-level PR comment,
in a review summary, or on an inline comment on the diff. Without a mention I won't see it.

@achettyiitr
achettyiitr changed the base branch from master to release/1.80.x July 15, 2026 04:35
@achettyiitr
achettyiitr changed the base branch from release/1.80.x to master July 15, 2026 04:36
@achettyiitr
achettyiitr changed the base branch from master to release/1.80.x July 15, 2026 04:37
@achettyiitr
achettyiitr force-pushed the harness/RUD-2977-fix-preserve-order-when-overflo-249b4bc9 branch from 706f498 to 5e92a16 Compare July 15, 2026 04:37
@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

An error occurred during the review process. Please try again later.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch harness/RUD-2977-fix-preserve-order-when-overflo-249b4bc9

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

1 similar comment
@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

An error occurred during the review process. Please try again later.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch harness/RUD-2977-fix-preserve-order-when-overflo-249b4bc9

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@achettyiitr
achettyiitr marked this pull request as ready for review July 15, 2026 04:45
@achettyiitr
achettyiitr force-pushed the harness/RUD-2977-fix-preserve-order-when-overflo-249b4bc9 branch from fd82976 to 5e92a16 Compare July 15, 2026 05:32
@rudderlabs rudderlabs deleted a comment from rudder-devbox Bot Jul 15, 2026
🔒 Scanned for secrets using gitleaks 8.29.1
@achettyiitr
achettyiitr force-pushed the harness/RUD-2977-fix-preserve-order-when-overflo-249b4bc9 branch from c5a9895 to ab9f279 Compare July 15, 2026 08:18
@rudder-devbox

rudder-devbox Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

⚠ CI failed on Tests but I could not fetch any job logs to diagnose the failure.

Errors encountered:
No details available.

View the run

@codecov

codecov Bot commented Jul 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.64%. Comparing base (3290619) to head (ab9f279).
⚠️ Report is 2 commits behind head on release/1.80.x.

Additional details and impacted files
@@                Coverage Diff                 @@
##           release/1.80.x    #7178      +/-   ##
==================================================
- Coverage           80.20%   79.64%   -0.57%     
==================================================
  Files                 595      595              
  Lines               66352    66110     -242     
==================================================
- Hits                53218    52652     -566     
- Misses              10012    10334     +322     
- Partials             3122     3124       +2     

☔ View full report in Codecov by Harness.
📢 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.

@achettyiitr
achettyiitr merged commit ec8fd1f into release/1.80.x Jul 15, 2026
110 of 113 checks passed
@achettyiitr
achettyiitr deleted the harness/RUD-2977-fix-preserve-order-when-overflo-249b4bc9 branch July 15, 2026 09:55
achettyiitr pushed a commit that referenced this pull request Jul 15, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.80.2](v1.80.1...v1.80.2)
(2026-07-15)


### Bug Fixes

* preserve order when overflowing snowpipe insert batches
([#7178](#7178))
([ec8fd1f](ec8fd1f))

---
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>
achettyiitr added a commit that referenced this pull request Jul 15, 2026
# Description

Syncing patch release v1.80.2 to main branch

**↓↓ Please review and edit commit overrides before merging ↓↓**

BEGIN_COMMIT_OVERRIDE
fix: preserve order when overflowing snowpipe insert batches (#7178)
END_COMMIT_OVERRIDE

---------

Co-authored-by: Alexandros Milaios <[email protected]>
Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
Co-authored-by: rudder-devbox[bot] <278693763+rudder-devbox[bot]@users.noreply.github.com>
Co-authored-by: tech-infra-rudderstack <[email protected]>
Co-authored-by: Akash Chetty <[email protected]>
Co-authored-by: Akash Chetty <[email protected]>
This was referenced Jul 20, 2026
mihir20 pushed a commit that referenced this pull request Jul 20, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.81.0-rc.1](v1.80.0...v1.81.0-rc.1)
(2026-07-20)


### Features

* run python transformation tests on ephemeral per-request pyt
deployments
([#7177](#7177))
([1008ae7](1008ae7))
* support partition migration job fanout per jobsdb
([#7141](#7141))
([be42e48](be42e48))


### Bug Fixes

* abort snowpipe events on channel bad request
([#7118](#7118))
([6c08584](6c08584))
* avoid redundant transformer statTags unmarshalling
([#7182](#7182))
([c3c283c](c3c283c))
* classify reverse-ETL sources from config for MAR metering
([#7159](#7159))
([fa7870f](fa7870f))
* detect server-side snowpipe channel failures via per-channel status at
stuck threshold
([#7166](#7166))
([581410c](581410c))
* kafkamanager compilation error
([#7189](#7189))
([1fb7f6e](1fb7f6e))
* **kafka:** support insecure TLS skip verify config
([#7022](#7022))
([d01574f](d01574f))
* preserve order when overflowing snowpipe insert batches
([#7178](#7178))
([9c01fa0](9c01fa0))
* quote postgres warehouse ddl identifiers
([#7127](#7127))
([5aeb481](5aeb481))
* **router:** emit invalid payload metric
([#7168](#7168))
([6e2009a](6e2009a))
* update null to #N/A for salesforce bulk upload
([#7151](#7151))
([1dffd93](1dffd93))
* **warehouse:** use pod identity for rudder-storage flow; keep S3-copy
user fallback for user S3 destinations
([#7167](#7167))
([3f9aa32](3f9aa32))


### Miscellaneous

* add contract tests for test endpoints in pytransformer
([#7147](#7147))
([3b210ec](3b210ec))
* bump compose-test to v0.1.5 to remediate pgx CVE-2026-33815
([#7162](#7162))
([7672f96](7672f96))
* **deps:** bump actions/checkout from 6.0.3 to 7.0.0
([#7132](#7132))
([d453c93](d453c93))
* **deps:** bump actions/setup-go from 6.4.0 to 6.5.0
([#7150](#7150))
([75d9648](75d9648))
* **deps:** bump aws-actions/amazon-ecr-login from 2.1.5 to 2.1.6
([#7109](#7109))
([7b2a859](7b2a859))
* **deps:** bump aws-actions/configure-aws-credentials from 6.2.0 to
6.2.2 ([#7152](#7152))
([c984268](c984268))
* **deps:** bump golangci/golangci-lint-action from 9.2.1 to 9.3.0
([#7170](#7170))
([4565d25](4565d25))
* **deps:** bump the frequent group across 1 directory with 4 updates
([#6891](#6891))
([88a0ddf](88a0ddf))
* support compression in bqstream destinations
([#7142](#7142))
([0694f12](0694f12))

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


##
[1.81.0](v1.80.0...v1.81.0)
(2026-07-20)


### Features

* run python transformation tests on ephemeral per-request pyt
deployments
([#7177](#7177))
([1008ae7](1008ae7))
* support partition migration job fanout per jobsdb
([#7141](#7141))
([be42e48](be42e48))


### Bug Fixes

* abort snowpipe events on channel bad request
([#7118](#7118))
([6c08584](6c08584))
* avoid redundant transformer statTags unmarshalling
([#7182](#7182))
([c3c283c](c3c283c))
* classify reverse-ETL sources from config for MAR metering
([#7159](#7159))
([fa7870f](fa7870f))
* detect server-side snowpipe channel failures via per-channel status at
stuck threshold
([#7166](#7166))
([581410c](581410c))
* kafkamanager compilation error
([#7189](#7189))
([1fb7f6e](1fb7f6e))
* **kafka:** support insecure TLS skip verify config
([#7022](#7022))
([d01574f](d01574f))
* preserve order when overflowing snowpipe insert batches
([#7178](#7178))
([9c01fa0](9c01fa0))
* quote postgres warehouse ddl identifiers
([#7127](#7127))
([5aeb481](5aeb481))
* **router:** emit invalid payload metric
([#7168](#7168))
([6e2009a](6e2009a))
* update null to #N/A for salesforce bulk upload
([#7151](#7151))
([1dffd93](1dffd93))
* **warehouse:** use pod identity for rudder-storage flow; keep S3-copy
user fallback for user S3 destinations
([#7167](#7167))
([3f9aa32](3f9aa32))


### Miscellaneous

* add contract tests for test endpoints in pytransformer
([#7147](#7147))
([3b210ec](3b210ec))
* bump compose-test to v0.1.5 to remediate pgx CVE-2026-33815
([#7162](#7162))
([7672f96](7672f96))
* **deps:** bump actions/checkout from 6.0.3 to 7.0.0
([#7132](#7132))
([d453c93](d453c93))
* **deps:** bump actions/setup-go from 6.4.0 to 6.5.0
([#7150](#7150))
([75d9648](75d9648))
* **deps:** bump aws-actions/amazon-ecr-login from 2.1.5 to 2.1.6
([#7109](#7109))
([7b2a859](7b2a859))
* **deps:** bump aws-actions/configure-aws-credentials from 6.2.0 to
6.2.2 ([#7152](#7152))
([c984268](c984268))
* **deps:** bump golangci/golangci-lint-action from 9.2.1 to 9.3.0
([#7170](#7170))
([4565d25](4565d25))
* **deps:** bump the frequent group across 1 directory with 4 updates
([#6891](#6891))
([88a0ddf](88a0ddf))
* support compression in bqstream destinations
([#7142](#7142))
([0694f12](0694f12))

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