Skip to content

chore: sync release v1.47.2 to main branch - #5760

Merged
shekhar-rudder merged 8 commits into
masterfrom
sync-release-6abdf9a59b6ceff0786d0ea676a456776789f682
Apr 23, 2025
Merged

shekhar-rudder merged 8 commits into
masterfrom
sync-release-6abdf9a59b6ceff0786d0ea676a456776789f682

Conversation

@devops-github-rudderstack

@devops-github-rudderstack devops-github-rudderstack commented Apr 23, 2025 •

Copy link
Copy Markdown
Collaborator

Description

Syncing patch release v1.47.2 to main branch

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

BEGIN_COMMIT_OVERRIDE
fix: race condition in table schema updates causing incorrect schema to be saved (#5756)
fix: warehouse extracting messageId and receivedAt from event payload (#5757)
END_COMMIT_OVERRIDE

Sidddddarth and others added 7 commits April 15, 2025 14:17
…ual payload length (#5723)

Job queries aggregated over `pg_column_size(event_payload)` to limit the
result when a size limit is passed. This could lead to loading more jobs
into memory than can be handled safely because it's the compressed size
of the column(when compressed). Using the `octet_length(event_payload)`
instead to find the actual byte size of the event payload column.
# Description

- Support granular configuration in adaptive rate limiter, different for
each destination.
- Decouple `throttleTolerancePercentage` from `increasePercentage` and
`decreasePercentage`


## 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.
…to be saved (#5756)

# Description

**BUG**
The `UpdateTableSchema` method can be invoked concurrently by multiple
goroutines, each fetching its own copy of the schema using `getSchema`.
This can result in a race condition where concurrent updates to the
schema map may override each other, leading to incorrect data being
saved.

**FIX**
- Introduced a lock at the beginning of the UpdateTableSchema method to
ensure only one goroutine can execute it at a time, preventing
concurrent modifications.
- Refactored getSchema to simplify mutex logic by moving schema fetching
to the constructor. This required moving setting of `schemaHandle` in
`UploadJob` struct from its constructor to `run` method
- Updated the `New` method of schema to replace `db` with two new
arguments `schemaRepo` and `stagingFileRepo` for easier testing

## 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.
🤖 I have created a release *beep* *boop*
---


##
[1.47.2](v1.47.1...v1.47.2)
(2025-04-23)


### Bug Fixes

* race condition in table schema updates causing incorrect schema to be
saved ([#5756](#5756))
([5ec12a0](5ec12a0))
* warehouse extracting messageId and receivedAt from event payload
([#5757](#5757))
([2532122](2532122))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
@codecov

codecov Bot commented Apr 23, 2025 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 89.92806% with 14 lines in your changes missing coverage. Please review.

Project coverage is 76.92%. Comparing base (877da25) to head (9adc955).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
warehouse/schema/schema.go 85.91% 7 Missing and 3 partials ⚠️
warehouse/router/upload.go 77.77% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5760      +/-   ##
==========================================
- Coverage   76.92%   76.92%   -0.01%     
==========================================
  Files         488      488              
  Lines       66507    66489      -18     
==========================================
- Hits        51159    51144      -15     
- Misses      12557    12558       +1     
+ Partials     2791     2787       -4     

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

@shekhar-rudder
shekhar-rudder merged commit f5ab51a into master Apr 23, 2025
@shekhar-rudder
shekhar-rudder deleted the sync-release-6abdf9a59b6ceff0786d0ea676a456776789f682 branch April 23, 2025 12:22
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.

5 participants