Repository navigation
chore: sync release v1.56.2 to main branch - #6214
Merged
achettyiitr merged 5 commits intoAug 4, 2025
Merged
Conversation
# Description
- While inserting source jobs, in case of empty tables or jobs, return
an error instead of silently succeeding it.
```
goroutine 62670 [running]:
github.com/rudderlabs/rudder-go-kit/logger.(*logger).Fataln(0x4000805680, {0x480acd4, 0x27}, {0x40028db808, 0x7, 0x3?})
\t/go/pkg/mod/github.com/rudderlabs/[email protected]/logger/logger.go:381 +0x234
github.com/rudderlabs/rudder-server/utils/crash.(*panicLogger).Handler.func1.(*panicLogger).Notify.1.1()
\t/rudder-server/utils/crash/logger.go:33 +0x57c
sync.(*Once).doSlow(0x16?, 0x25?)
\t/usr/local/go/src/sync/once.go:78 +0xf0
sync.(*Once).Do(0x4006826bd8?, 0x4fa9c?)
\t/usr/local/go/src/sync/once.go:69 +0x24
github.com/rudderlabs/rudder-server/utils/crash.(*panicLogger).Handler.func1.(*panicLogger).Notify.1()
\t/rudder-server/utils/crash/logger.go:32 +0x90
panic({0x43fe800?, 0x4083180b10?})
\t/usr/local/go/src/runtime/panic.go:792 +0x124
github.com/rudderlabs/rudder-server/warehouse/internal/repo.(*Source).Insert(0x400082b650, {0x509cf78, 0x4005449a10}, {0x7e4f280, 0x0, 0x0})
\t/rudder-server/warehouse/internal/repo/source.go:54 +0x2e8
github.com/rudderlabs/rudder-server/warehouse/source.(*Manager).InsertJobs(0x4000a9c6c0, {0x509cf78, 0x4005449a10}, {{0x4082e86da0, 0x1b}, {0x4082e86dc0, 0x1b}, {{0x0, 0xee01da36a, 0x0}}, ...})
\t/rudder-server/warehouse/source/source.go:112 +0x7d0
github.com/rudderlabs/rudder-server/warehouse/source.(*Manager).InsertJobHandler(0x4000a9c6c0, {0x5092510, 0x4083193308}, 0x40010b7680)
\t/rudder-server/warehouse/source/http.go:37 +0x33c
net/http.HandlerFunc.ServeHTTP(0x400082b9e0?, {0x5092510?, 0x4083193308?}, 0x0?)
\t/usr/local/go/src/net/http/server.go:2294 +0x38
github.com/rudderlabs/rudder-server/warehouse/api.(*Api).addMasterEndpoints.func1.1.(*Api).logMiddleware.3({0x5092510, 0x4083193308}, 0x40010b7680)
\t/rudder-server/warehouse/api/http.go:460 +0x58
net/http.HandlerFunc.ServeHTTP(0x4043b52c30?, {0x5092510?, 0x4083193308?}, 0x400e4ccba4?)
\t/usr/local/go/src/net/http/server.go:2294 +0x38
github.com/go-chi/chi/v5.(*Mux).routeHTTP(0x400c4c0120, {0x5092510, 0x4083193308}, 0x40010b7680)
\t/go/pkg/mod/github.com/go-chi/chi/[email protected]/mux.go:478 +0x280
net/http.Hand","stack":"goroutine 62670 [running]:
runtime/debug.Stack()
\t/usr/local/go/src/runtime/debug/stack.go:26 +0x64
github.com/rudderlabs/rudder-server/utils/crash.(*panicLogger).Handler.func1.(*panicLogger).Notify.1.1()
\t/rudder-server/utils/crash/logger.go:34 +0x4c
sync.(*Once).doSlow(0x16?, 0x25?)
\t/usr/local/go/src/sync/once.go:78 +0xf0
sync.(*Once).Do(0x4006826bd8?, 0x4fa9c?)
\t/usr/local/go/src/sync/once.go:69 +0x24
github.com/rudderlabs/rudder-server/utils/crash.(*panicLogger).Handler.func1.(*panicLogger).Notify.1()
\t/rudder-server/utils/crash/logger.go:32 +0x90
panic({0x43fe800?, 0x4083180b10?})
\t/usr/local/go/src/runtime/panic.go:792 +0x124
github.com/rudderlabs/rudder-server/warehouse/internal/repo.(*Source).Insert(0x400082b650, {0x509cf78, 0x4005449a10}, {0x7e4f280, 0x0, 0x0})
\t/rudder-server/warehouse/internal/repo/source.go:54 +0x2e8
github.com/rudderlabs/rudder-server/warehouse/source.(*Manager).InsertJobs(0x4000a9c6c0, {0x509cf78, 0x4005449a10}, {{0x4082e86da0, 0x1b}, {0x4082e86dc0, 0x1b}, {{0x0, 0xee01da36a, 0x0}}, ...})
\t/rudder-server/warehouse/source/source.go:112 +0x7d0
github.com/rudderlabs/rudder-server/warehouse/source.(*Manager).InsertJobHandler(0x4000a9c6c0, {0x5092510, 0x4083193308}, 0x40010b7680)
\t/rudder-server/warehouse/source/http.go:37 +0x33c
net/http.HandlerFunc.ServeHTTP(0x400082b9e0?, {0x5092510?, 0x4083193308?}, 0x0?)
\t/usr/local/go/src/net/http/server.go:2294 +0x38
github.com/rudderlabs/rudder-server/warehouse/api.(*Api).addMasterEndpoints.func1.1.(*Api).logMiddleware.3({0x5092510, 0x4083193308}, 0x40010b7680)
runtime error: index out of range [0] with length 0
```
## Linear Ticket
- Resolves WAR-993
## 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.56.1](v1.56.0...v1.56.1) (2025-08-01) ### Bug Fixes * warehouse source empty jobs ([#6204](#6204)) ([e27b8c0](e27b8c0)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- ## [1.56.2](v1.56.1...v1.56.2) (2025-08-04) ### Miscellaneous * revert "fix: snowpipe events getting duplicated if status API fails" ([#6211](#6211)) ([6005630](6005630)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
achettyiitr
approved these changes
Aug 4, 2025
cisse21
approved these changes
Aug 4, 2025
cisse21
enabled auto-merge (squash)
August 4, 2025 10:23
achettyiitr
disabled auto-merge
August 4, 2025 10:24
achettyiitr
enabled auto-merge (squash)
August 4, 2025 10:25
achettyiitr
deleted the
sync-release-b99c9505dadbdd39c2fe7e331844e81efd13bc2d
branch
August 4, 2025 10:36
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6214 +/- ##
=========================================
Coverage ? 76.81%
=========================================
Files ? 511
Lines ? 69829
Branches ? 0
=========================================
Hits ? 53641
Misses ? 13293
Partials ? 2895 ☔ 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.56.2 to main branch
↓↓ Please review and edit commit overrides before merging ↓↓
BEGIN_COMMIT_OVERRIDE
chore: revert "fix: snowpipe events getting duplicated if status API fails" (#6211)
END_COMMIT_OVERRIDE