Skip to content

fix: gcs file deletion timing out - #5951

Merged
vyeshwanth merged 5 commits into
release/1.51.xfrom
fix.gcs-file-deletion-timing-out
Jun 10, 2025
Merged

vyeshwanth merged 5 commits into
release/1.51.xfrom
fix.gcs-file-deletion-timing-out

Conversation

@vyeshwanth

@vyeshwanth vyeshwanth commented Jun 5, 2025 •

Copy link
Copy Markdown
Contributor

Description

  • call fm.Delete() with lesser chunk size and in parallel to speed up load file deletion for GCS
  • Add tests for cleanupStorageFiles, needed to refactor the code to make the code testable with mocks

Linear Ticket

Part of WAR-736

Security

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

@vyeshwanth
vyeshwanth changed the base branch from master to release/1.50.x June 5, 2025 12:23
@vyeshwanth
vyeshwanth force-pushed the fix.gcs-file-deletion-timing-out branch from 39e6ded to d0f6a36 Compare June 6, 2025 11:05
@codecov

codecov Bot commented Jun 6, 2025 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 38.12950% with 86 lines in your changes missing coverage. Please review.

Project coverage is 76.91%. Comparing base (e34cc92) to head (842e53a).
Report is 1 commits behind head on release/1.51.x.

Files with missing lines Patch % Lines
warehouse/router/mocks/upload.go 16.85% 74 Missing ⚠️
warehouse/router/upload.go 76.00% 10 Missing and 2 partials ⚠️
Additional details and impacted files
@@                Coverage Diff                 @@
##           release/1.51.x    #5951      +/-   ##
==================================================
- Coverage           77.02%   76.91%   -0.12%     
==================================================
  Files                 494      495       +1     
  Lines               68356    68490     +134     
==================================================
+ Hits                52653    52678      +25     
- Misses              12839    12946     +107     
- Partials             2864     2866       +2     

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

Comment thread warehouse/router/upload.go Resolved
Comment thread warehouse/router/upload.go Resolved
Comment thread warehouse/router/upload.go Resolved
Comment thread warehouse/router/upload.go Resolved
Comment thread warehouse/router/upload.go Resolved
Comment thread warehouse/router/upload.go Resolved
Comment thread warehouse/router/upload.go Resolved
Comment thread warehouse/router/upload.go Resolved
@vyeshwanth
vyeshwanth changed the base branch from release/1.50.x to release/1.51.x June 10, 2025 06:44
@vyeshwanth
vyeshwanth force-pushed the fix.gcs-file-deletion-timing-out branch from 74edc5c to cdb7f8c Compare June 10, 2025 06:48
@vyeshwanth
vyeshwanth merged commit b0d3f88 into release/1.51.x Jun 10, 2025
@vyeshwanth
vyeshwanth deleted the fix.gcs-file-deletion-timing-out branch June 10, 2025 10:22
vyeshwanth pushed a commit that referenced this pull request Jun 10, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.51.1](v1.51.0...v1.51.1)
(2025-06-10)


### Bug Fixes

* gcs file deletion timing out
([#5951](#5951))
([b0d3f88](b0d3f88))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
atzoum pushed a commit that referenced this pull request Jun 10, 2025
# Description

Syncing patch release v1.51.1 to main branch

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

BEGIN_COMMIT_OVERRIDE
fix: gcs file deletion timing out (#5951)
END_COMMIT_OVERRIDE

---------

Co-authored-by: yeshwanth vuppu <[email protected]>
Co-authored-by: Akash Chetty <[email protected]>
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