Repository navigation
chore: sync release v1.80.2 to main branch - #7180
Merged
achettyiitr merged 5 commits intoJul 15, 2026
Merged
Conversation
## What & why MAR (Monthly Active Records) metering for reverse-ETL / Audiences sources produced **no data** in clustered/production deployments: `activation_records_reports` stayed empty and the MAR API returned `[]`. The reporter gated reverse-ETL classification on the job's `source_category` **param**. That param is populated on the gateway web/auth path, but is **empty on the clustered `/internal/v1/batch` ingestion path** (rudder-sources → ingestion-svc → Pulsar → srcrouter → gateway). So every reverse-ETL record was silently skipped — no rows, no skip stats. ## Change Classify reverse-ETL (warehouse) sources from the **source config** (`SourceDefinition.Category`) instead of the job param: - `processor` snapshots a `source_id → category` map once per batch (single lock, category strings only) and passes a lookup `func(sourceID string) string` into the reporter. - `records_reporter.GenerateReportsFromJobs` gates on that lookup (`== "warehouse"`), still reading the fingerprint from the raw pre-strip job. Path-independent (works for `/internal/v1/batch`, `/internal/v1/retl`, single-node/mini) and fail-closed: an unknown/missing `source_id` resolves to `""` and is skipped; a spoofed `source_category` param can't force metering. This supersedes an earlier gateway-side approach (stamping `source_category` in the internal-batch handler). Classifying at the consumer keeps the change contained to the MAR feature and independent of ingestion topology, and mirrors the sibling tracked-users reporter, which already takes a source-config lookup. ## Tests `records_reporter_test.go`: warehouse source metered with an empty `source_category` param; non-warehouse source skipped; a spoofed `source_category=warehouse` param does not win over config; unknown source skipped fail-closed. ## Validation Verified end-to-end in dev (`profiles-qa`): reverse-ETL sync → rows in `activation_records_reports` → flushed to the reporting store → MAR API returns per-connection counts (was `[]`). Linear: [PRO-5810](https://linear.app/rudderstack/issue/PRO-5810)
🤖 I have created a release *beep* *boop* --- ## [1.80.1](v1.80.0...v1.80.1) (2026-07-08) ### Bug Fixes * classify reverse-ETL sources from config for MAR metering ([#7159](#7159)) ([8e026e3](8e026e3)) --- 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>
# 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 RUD-2977 ## Security - [x] The code changed/added as part of this pull request won't create any security issues with how the software is being used. --------- Co-authored-by: tech-infra-rudderstack <[email protected]> Co-authored-by: Akash Chetty <[email protected]>
🤖 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>
shekhar-rudder
approved these changes
Jul 15, 2026
achettyiitr
approved these changes
Jul 15, 2026
achettyiitr
enabled auto-merge (squash)
July 15, 2026 10:49
achettyiitr
deleted the
sync-release-24961e5cd4e34c578de23b475d27d8c3b90f228e
branch
July 15, 2026 11:14
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7180 +/- ##
==========================================
+ Coverage 79.60% 79.65% +0.05%
==========================================
Files 595 595
Lines 66140 66154 +14
==========================================
+ Hits 52652 52698 +46
+ Misses 10377 10342 -35
- Partials 3111 3114 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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
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