Repository navigation
chore: sync release v1.50.2 to main branch - #5921
Merged
atzoum merged 6 commits intoMay 28, 2025
Merged
Conversation
🤖 I have created a release *beep* *boop* --- ## [1.50.1](v1.50.0...v1.50.1) (2025-05-27) ### Bug Fixes * under reporting of load files when using upload id ([#5889](#5889)) ([#5906](#5906)) ([84029f7](84029f7)) * warehouse transformations geo enrichment as string ([#5907](#5907)) ([4caf359](4caf359)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
…nection pool (#5919) # Description When `Processor.enableConcurrentStore` is enabled, the processor performs the following operations concurrently: - Storing batchrouter jobs - Storing router jobs - Storing proc error jobs - Updating gateway job statuses (transaction gets committed only after all above transactions are successfully committed) Each of these operations uses a separate database connection. In the "store router jobs" operation, before opening a connection, a mutex is acquired per destinationID to ensure that only one goroutine inserts jobs for a given destination at a time. However, this can lead to a deadlock under high load: if all database connections in the pool are occupied by goroutines waiting to acquire a destinationID mutex, and the one goroutine that has acquired the mutex is blocked waiting for a database connection, progress stalls. The result is a circular wait where no goroutine can proceed, causing the processor's throughput to stall.. To fix this deadlock, whenever `Processor.enableConcurrentStore` is enabled, we're acquiring the mutexes early, before any other connection. Additionally, we're increasing the default connection pool size to 80 and limiting it to 20 for gateway. ## Linear Ticket resolves PIPE-2101 ## 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.50.2](v1.50.1...v1.50.2) (2025-05-28) ### Bug Fixes * **processor:** throughput stalling due to mutex deadlock on full connection pool ([#5919](#5919)) ([a29dd15](a29dd15)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
…ac899c4bec17c8b652bce09b04b6a49a98
mihir20
approved these changes
May 28, 2025
fracasula
approved these changes
May 28, 2025
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5921 +/- ##
==========================================
- Coverage 76.84% 76.81% -0.03%
==========================================
Files 494 494
Lines 68178 68196 +18
==========================================
- Hits 52392 52386 -6
- Misses 12918 12937 +19
- Partials 2868 2873 +5 ☔ View full report in Codecov by Sentry. 🚀 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.50.2 to main branch
↓↓ Please review and edit commit overrides before merging ↓↓
BEGIN_COMMIT_OVERRIDE
fix(processor): throughput stalling due to mutex deadlock on full connection pool (#5919)
END_COMMIT_OVERRIDE