Skip to content

feat: detect and handle memory-fenced responses in rudder-server - #5935

Merged
cisse21 merged 26 commits into
masterfrom
feature/pipe-2077-detect-and-handle-memory-fenced-responses-in-rudder-server
Jun 13, 2025
Merged

cisse21 merged 26 commits into
masterfrom
feature/pipe-2077-detect-and-handle-memory-fenced-responses-in-rudder-server

Conversation

@cisse21

@cisse21 cisse21 commented Jun 3, 2025 •

Copy link
Copy Markdown
Member

Description

All transformer clients that rudder-server & rudder-ingestion-svc use should have perpetual retries with backoff whenever they encounter a HTTP 503 error with the X-Rudder-Should-Retry: true response header. Client should emit a request failure metric using the X-Rudder-Error-Reason header in the metric's reason label, so that we can visualize errors and setup alerts against them.

Linear Ticket

Fixes PIPE-2077

Security

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

@codecov

codecov Bot commented Jun 3, 2025 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 79.20000% with 26 lines in your changes missing coverage. Please review.

Project coverage is 76.87%. Comparing base (3e0dc6f) to head (c24893b).
Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
internal/transformer-client/client.go 76.78% 21 Missing and 5 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5935      +/-   ##
==========================================
+ Coverage   76.84%   76.87%   +0.02%     
==========================================
  Files         495      496       +1     
  Lines       68528    68695     +167     
==========================================
+ Hits        52663    52807     +144     
- Misses      12991    13004      +13     
- Partials     2874     2884      +10     

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

@cisse21
cisse21 force-pushed the feature/pipe-2077-detect-and-handle-memory-fenced-responses-in-rudder-server branch 2 times, most recently from fa46bd3 to 906c1b0 Compare June 3, 2025 06:12
@cisse21
cisse21 force-pushed the feature/pipe-2077-detect-and-handle-memory-fenced-responses-in-rudder-server branch from 906c1b0 to a05fe0b Compare June 3, 2025 08:45
@cisse21
cisse21 marked this pull request as ready for review June 4, 2025 05:06
@cisse21
cisse21 force-pushed the feature/pipe-2077-detect-and-handle-memory-fenced-responses-in-rudder-server branch from 5768ef8 to 3830968 Compare June 4, 2025 05:07
Comment thread internal/transformer-client/client.go Resolved
Comment thread internal/transformer-client/client.go Resolved
Comment thread internal/transformer-client/client.go Resolved
Comment thread internal/transformer-client/client.go Resolved
Comment thread internal/transformer-client/client.go Resolved
Comment thread internal/transformer-client/client.go Resolved
Comment thread internal/transformer-client/client.go Resolved
@ktgowtham
ktgowtham requested review from atzoum and ktgowtham June 9, 2025 08:35
Comment thread gateway/webhook/setup.go Resolved
Comment thread internal/transformer-client/client.go Resolved
@cisse21
cisse21 requested review from atzoum and ktgowtham June 10, 2025 13:52
Comment thread internal/transformer-client/client.go Resolved
Comment thread processor/internal/transformer/utils.go Resolved
Comment thread internal/transformer-client/client.go Resolved
Comment thread internal/transformer-client/client.go Resolved
Comment thread internal/transformer-client/client.go Resolved
@cisse21
cisse21 requested a review from atzoum June 11, 2025 07:54
Comment thread router/transformer/transformer_test.go Resolved
Comment thread internal/transformer-client/client.go Resolved
Comment thread internal/transformer-client/client.go Resolved
cisse21 added 5 commits June 12, 2025 15:15
…nses-in-rudder-server' of github.com:rudderlabs/rudder-server into feature/pipe-2077-detect-and-handle-memory-fenced-responses-in-rudder-server
@cisse21
cisse21 requested a review from atzoum June 12, 2025 12:29
Comment thread go.mod
github.com/cenkalti/backoff/v5 v5.0.2 // indirect
github.com/containerd/errdefs/pkg v0.3.0 // indirect
)
require github.com/cenkalti/backoff/v5 v5.0.2 // indirect

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.

we should migrate everything to cenkalti/backoff/v5 at some point

@cisse21
cisse21 merged commit af45808 into master Jun 13, 2025
@cisse21
cisse21 deleted the feature/pipe-2077-detect-and-handle-memory-fenced-responses-in-rudder-server branch June 13, 2025 06:10
This was referenced Jun 16, 2025
itsmihir pushed a commit that referenced this pull request Jun 16, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.52.0-rc.1](v1.51.0...v1.52.0-rc.1)
(2025-06-16)


### Features

* capture bot metrics post deduplication
([#5956](#5956))
([94f40c8](94f40c8))
* detect and handle memory-fenced responses in rudder-server
([#5935](#5935))
([af45808](af45808))
* migrate cloud destinations to v2 sdk
([#5916](#5916))
([93d64f5](93d64f5))
* shutdown server on non-reloadable config change
([#5941](#5941))
([985d3f9](985d3f9))


### Bug Fixes

* duplicates in snowpipe streaming due to stale channel cache
([#5957](#5957))
([4badd49](4badd49))
* gcs file deletion timing out
([#5951](#5951))
([e4abe53](e4abe53))
* update and extend async event delivery time metrics tests for
JobParameters logic
([#5975](#5975))
([01483d5](01483d5))
* warehouse transformations deep copying arguments
([#5979](#5979))
([28d15ac](28d15ac))


### Miscellaneous

* add conversionTime iso 8601 validation for bingads oc
([#5858](#5858))
([3e0dc6f](3e0dc6f))
* create new backoff on every reporting request
([#5993](#5993))
([7e3715a](7e3715a))
* **deps:** bump the go-deps group across 1 directory with 21 updates
([#5983](#5983))
([aa3ee66](aa3ee66))
* remove golang.org/x/crypto v0.32.0
([#5986](#5986))
([6fbb5a3](6fbb5a3))
* sync release v1.51.0 to main branch
([#5971](#5971))
([b9b1a21](b9b1a21))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
itsmihir pushed a commit that referenced this pull request Jun 17, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.52.0](v1.51.0...v1.52.0)
(2025-06-16)


### Features

* capture bot metrics post deduplication
([#5956](#5956))
([94f40c8](94f40c8))
* detect and handle memory-fenced responses in rudder-server
([#5935](#5935))
([af45808](af45808))
* migrate cloud destinations to v2 sdk
([#5916](#5916))
([93d64f5](93d64f5))
* shutdown server on non-reloadable config change
([#5941](#5941))
([985d3f9](985d3f9))


### Bug Fixes

* duplicates in snowpipe streaming due to stale channel cache
([#5957](#5957))
([4badd49](4badd49))
* gcs file deletion timing out
([#5951](#5951))
([e4abe53](e4abe53))
* update and extend async event delivery time metrics tests for
JobParameters logic
([#5975](#5975))
([01483d5](01483d5))
* warehouse transformations deep copying arguments
([#5979](#5979))
([28d15ac](28d15ac))


### Miscellaneous

* add conversionTime iso 8601 validation for bingads oc
([#5858](#5858))
([3e0dc6f](3e0dc6f))
* create new backoff on every reporting request
([#5993](#5993))
([7e3715a](7e3715a))
* **deps:** bump the go-deps group across 1 directory with 21 updates
([#5983](#5983))
([aa3ee66](aa3ee66))
* remove golang.org/x/crypto v0.32.0
([#5986](#5986))
([6fbb5a3](6fbb5a3))
* sync release v1.51.0 to main branch
([#5971](#5971))
([b9b1a21](b9b1a21))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
This was referenced Jun 23, 2025
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