Skip to content

fix(router): kinesis rate exceeded errors are being aborted with http 400 - #6329

Merged
koladilip merged 1 commit into
release/1.58.xfrom
fix/aws-stream-destinations-rate-limit-error
Sep 11, 2025
Merged

koladilip merged 1 commit into
release/1.58.xfrom
fix/aws-stream-destinations-rate-limit-error

Conversation

@koladilip

@koladilip koladilip commented Sep 10, 2025 •

Copy link
Copy Markdown
Contributor

Description

added parseKinesisError function: Calls common.ParseAWSError and only changes the status code to 429 if the error is ProvisionedThroughputExceededException
Updated Produce method: Replaces the direct call to common.ParseAWSError with parseKinesisError

Linear Ticket

Fixes INT-4117

Impact

  • Improves reliability of Kinesis stream processing when rate limits are encountered
  • Prevents events from being aborted with HTTP 400 when they should be retried

Testing

Test coverage: Verifies that ProvisionedThroughputExceededException returns 429 status code

Security

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

Comment thread services/streammanager/common/common.go Resolved
@koladilip koladilip changed the title fix(streammanager): handle 'Rate exceeded' errors as throttling fix: handle Rate exceeded errors as throttling Sep 10, 2025
@koladilip
koladilip requested a review from atzoum September 10, 2025 08:21
@koladilip
koladilip force-pushed the fix/aws-stream-destinations-rate-limit-error branch 3 times, most recently from 4a0b41e to b00b119 Compare September 10, 2025 09:27
@atzoum atzoum changed the title fix: handle Rate exceeded errors as throttling fix(router): kinesis rate exceeded errors are being aborted with http 400 Sep 10, 2025

@atzoum atzoum left a comment

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.

pr description appears to be outdated

…tion

- Fixes INT-4117: handle Kinesis rate limit errors as HTTP 429
- Add parseKinesisError function to convert ProvisionedThroughputExceededException to 429 status
- Keep original error message and status, only change status code
- Add test coverage for ProvisionedThroughputExceededException handling
@koladilip
koladilip force-pushed the fix/aws-stream-destinations-rate-limit-error branch from b00b119 to 985f59a Compare September 10, 2025 10:24
@koladilip
koladilip requested a review from atzoum September 10, 2025 10:25
@koladilip

Copy link
Copy Markdown
Contributor Author

pr description appears to be outdated

Updated.

@atzoum
atzoum requested review from cisse21 and ktgowtham September 10, 2025 12:43
@koladilip
koladilip merged commit c07565a into release/1.58.x Sep 11, 2025
@koladilip
koladilip deleted the fix/aws-stream-destinations-rate-limit-error branch September 11, 2025 03:15
atzoum added a commit that referenced this pull request Sep 11, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.58.2](v1.58.1...v1.58.2)
(2025-09-11)


### Bug Fixes

* **router:** kinesis rate exceeded errors are being aborted with http
400 ([#6329](#6329))
([c07565a](c07565a))

---
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: Aris Tzoumas <[email protected]>
atzoum added a commit that referenced this pull request Sep 11, 2025
# Description

Syncing patch release v1.58.2 to main branch

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

BEGIN_COMMIT_OVERRIDE
fix(router): kinesis rate exceeded errors are being aborted with http
400 (#6329)
END_COMMIT_OVERRIDE

---------

Co-authored-by: Akash Chetty <[email protected]>
Co-authored-by: Dilip Kola <[email protected]>
Co-authored-by: Aris Tzoumas <[email protected]>
koladilip added a commit that referenced this pull request Sep 15, 2025
… 400 (#6329)

added parseKinesisError function: Calls common.ParseAWSError and only
changes the status code to 429 if the error is
ProvisionedThroughputExceededException
Updated Produce method: Replaces the direct call to common.ParseAWSError
with parseKinesisError

Fixes
[INT-4117](https://linear.app/rudderstack/issue/INT-4117/abort-throttled-kinesis-events-with-http-400-error)

- Improves reliability of Kinesis stream processing when rate limits are
encountered
- Prevents events from being aborted with HTTP 400 when they should be
retried

Test coverage: Verifies that ProvisionedThroughputExceededException
returns 429 status code

- [x] The code changed/added as part of this pull request won't create
any security issues with how the software is being used.
This was referenced Sep 15, 2025
satishrudderstack pushed a commit that referenced this pull request Sep 15, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.59.0-rc.1](v1.58.0...v1.59.0-rc.1)
(2025-09-15)


### Features

* **router:** add request latency and count metrics for router
deliveries
([#6288](#6288))
([c8dd8ef](c8dd8ef))


### Bug Fixes

* avoid running migrations for notifier from slaves
([#6303](#6303))
([761eb46](761eb46))
* **batchrouter:** support configurable column ordering in CSVs in sftp
([#6342](#6342))
([652215b](652215b))
* populate table level schemas createdAt updatedAt
([#6344](#6344))
([a76a509](a76a509))
* remove unwanted table level schemas
([#6296](#6296))
([761eb46](761eb46))
* **router:** kinesis rate exceeded errors are being aborted with http
400 ([#6329](#6329))
([f739d7f](f739d7f))
* update ID regex to include underscores in error cleanup
([#6315](#6315))
([bc1a751](bc1a751))


### Miscellaneous

* add logs for events coming with an incorrect source and sourceRunId
([#6309](#6309))
([17afa60](17afa60))
* add readme for OAuth module
([#6335](#6335))
([3c9f251](3c9f251))
* bump go-kit
([#6321](#6321))
([87499e0](87499e0))
* bump mvdan.cc/gofumpt to v0.9.1
([#6328](#6328))
([cf9f653](cf9f653))
* capture stats for failed transformer client requests
([#6300](#6300))
([e10d5c1](e10d5c1))
* clean up legacy MTU logic
([#6314](#6314))
([a2e753d](a2e753d))
* clean up logs to trace double-encoded HLL value issue
([#6310](#6310))
([c707aea](c707aea))
* drop unused services/oauth v1 and minor v2 tidy-ups
([#6275](#6275))
([c1b84c1](c1b84c1))
* improve googlesheets oauth flow and error handling
([#6340](#6340))
([738d420](738d420))
* optimize dtransform payloads and have compaction always enabled
([#6331](#6331))
([63af856](63af856))
* remove proc_error jobsdb
([#6287](#6287))
([5b92665](5b92665))
* renaming mirroring modes
([#6325](#6325))
([84687fb](84687fb))
* **router:** ignore throttling costs in pickup throttler
([#6316](#6316))
([af85b92](af85b92))
* sync release v1.58.0 to main branch
([#6294](#6294))
([565630e](565630e))
* unify adaptive and static throttling configuration
([#6327](#6327))
([077b0fb](077b0fb))
* update rudderlabs/build-scan-push-action to 1.7.0
([#6320](#6320))
([edb02d3](edb02d3))
* updating keydb client
([#6301](#6301))
([0f9e3ec](0f9e3ec))

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


##
[1.59.0](v1.58.0...v1.59.0)
(2025-09-15)


### Features

* **router:** add request latency and count metrics for router
deliveries
([#6288](#6288))
([c8dd8ef](c8dd8ef))


### Bug Fixes

* avoid running migrations for notifier from slaves
([#6303](#6303))
([761eb46](761eb46))
* **batchrouter:** support configurable column ordering in CSVs in sftp
([#6342](#6342))
([652215b](652215b))
* populate table level schemas createdAt updatedAt
([#6344](#6344))
([a76a509](a76a509))
* remove unwanted table level schemas
([#6296](#6296))
([761eb46](761eb46))
* **router:** kinesis rate exceeded errors are being aborted with http
400 ([#6329](#6329))
([f739d7f](f739d7f))
* update ID regex to include underscores in error cleanup
([#6315](#6315))
([bc1a751](bc1a751))


### Miscellaneous

* add logs for events coming with an incorrect source and sourceRunId
([#6309](#6309))
([17afa60](17afa60))
* add readme for OAuth module
([#6335](#6335))
([3c9f251](3c9f251))
* bump go-kit
([#6321](#6321))
([87499e0](87499e0))
* bump mvdan.cc/gofumpt to v0.9.1
([#6328](#6328))
([cf9f653](cf9f653))
* capture stats for failed transformer client requests
([#6300](#6300))
([e10d5c1](e10d5c1))
* clean up legacy MTU logic
([#6314](#6314))
([a2e753d](a2e753d))
* clean up logs to trace double-encoded HLL value issue
([#6310](#6310))
([c707aea](c707aea))
* drop unused services/oauth v1 and minor v2 tidy-ups
([#6275](#6275))
([c1b84c1](c1b84c1))
* improve googlesheets oauth flow and error handling
([#6340](#6340))
([738d420](738d420))
* optimize dtransform payloads and have compaction always enabled
([#6331](#6331))
([63af856](63af856))
* remove proc_error jobsdb
([#6287](#6287))
([5b92665](5b92665))
* renaming mirroring modes
([#6325](#6325))
([84687fb](84687fb))
* **router:** ignore throttling costs in pickup throttler
([#6316](#6316))
([af85b92](af85b92))
* sync release v1.58.0 to main branch
([#6294](#6294))
([565630e](565630e))
* unify adaptive and static throttling configuration
([#6327](#6327))
([077b0fb](077b0fb))
* update rudderlabs/build-scan-push-action to 1.7.0
([#6320](#6320))
([edb02d3](edb02d3))
* updating keydb client
([#6301](#6301))
([0f9e3ec](0f9e3ec))

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