Skip to content

chore: sync release v1.50.5 to main branch - #5949

Merged
vyeshwanth merged 13 commits into
masterfrom
sync-release-a931c60b0027f923cd3d639f21f800cada9758db
Jun 5, 2025
Merged

vyeshwanth merged 13 commits into
masterfrom
sync-release-a931c60b0027f923cd3d639f21f800cada9758db

Conversation

@devops-github-rudderstack

@devops-github-rudderstack devops-github-rudderstack commented Jun 5, 2025 •

Copy link
Copy Markdown
Collaborator

Description

Syncing patch release v1.50.5 to main branch

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

BEGIN_COMMIT_OVERRIDE
chore: add config to disable load table stats for clickhouse (#5932)
END_COMMIT_OVERRIDE

achettyiitr and others added 12 commits May 27, 2025 14:47
🤖 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).
# Description

- While encoding using the `jsonrs` package, it uses the
([jsoniter](https://github.com/rudderlabs/rudder-go-kit/blob/main/jsonrs/sonnet.go#L41-L48))
library, there is a difference in the output for floating point values,
although the value remains the same.

```GO
func TestJSON(t *testing.T) {
	data := map[string]any{"output_tokens_cost": 0.0000006}

	tests := []struct {
		name            string
		lib             string
		expectedMarshal string
		expectedEncode  string
	}{
		{
			name:            "StdLib",
			lib:             jsonrs.StdLib,
			expectedMarshal: `{"output_tokens_cost":6e-7}`,
			expectedEncode:  `{"output_tokens_cost":6e-7}`,
		},
		{
			name:            "JsoniterLib",
			lib:             jsonrs.JsoniterLib,
			expectedMarshal: `{"output_tokens_cost":6e-07}`,
			expectedEncode:  `{"output_tokens_cost":6e-07}`,
		},
	}

	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			// Test Marshal
			dataJSON, err := jsonrs.NewWithLibrary(tt.lib).Marshal(data)
			require.NoError(t, err)
			require.Equal(t, tt.expectedMarshal, strings.TrimSpace(string(dataJSON)))

			// Test Encoder.Encode
			var buf bytes.Buffer
			enc := jsonrs.NewWithLibrary(tt.lib).NewEncoder(&buf)
			err = enc.Encode(data)
			require.NoError(t, err)
			require.Equal(t, tt.expectedEncode, strings.TrimSpace(buf.String()))
		})
	}
}
```

## Linear Ticket

- Resolves WAR-731

## 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.
# Description

- Added store sampler for processor to upload sample events in case
storing to Postgres fails.

## Linear Ticket

- Resolves WAR-697

## 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.3](v1.50.2...v1.50.3)
(2025-06-04)


### Miscellaneous

* proc sample store uploader
([#5917](#5917))
([39c8e46](39c8e46))
* warehouse transformations json diff with encoding
([#5937](#5937))
([bf75a96](bf75a96))

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

- use jsonrs StdLib for encoding in warehouse transformations

## Linear Ticket

- Resolves WAR-731

## 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.4](v1.50.3...v1.50.4)
(2025-06-04)


### Bug Fixes

* use jsonrs stdlib for encoding warehouse transformations
([#5945](#5945))
([055b7de](055b7de))

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

- Add config to disable load stats for clickhouse. 

## Linear Ticket

Part of WAR-250

## Security

- [ ] 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.5](v1.50.4...v1.50.5)
(2025-06-05)


### Miscellaneous

* add config to disable load table stats for clickhouse
([#5932](#5932))
([69c9345](69c9345))

---
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 Jun 5, 2025 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 72.72727% with 6 lines in your changes missing coverage. Please review.

Project coverage is 76.91%. Comparing base (53b8156) to head (e4a6826).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
warehouse/integrations/clickhouse/clickhouse.go 72.72% 4 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5949      +/-   ##
==========================================
- Coverage   76.97%   76.91%   -0.06%     
==========================================
  Files         494      494              
  Lines       68372    68386      +14     
==========================================
- Hits        52626    52596      -30     
- Misses      12876    12914      +38     
- Partials     2870     2876       +6     

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

@vyeshwanth
vyeshwanth merged commit 55c26f2 into master Jun 5, 2025
@vyeshwanth
vyeshwanth deleted the sync-release-a931c60b0027f923cd3d639f21f800cada9758db branch June 5, 2025 11:07
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