Repository navigation
chore: remove deprecated bulkStatusEnabled flag for snowpipe streaming - #6992
Merged
Merged
Conversation
The bulk-status path has been tested at flags=true and works correctly, so we can drop the deprecated per-channel GetStatus path and the flag. - Remove SnowpipeStreaming.bulkStatusEnabled config registration and field - Remove GetStatus from the api interface; drop apiAdapter.GetStatus wrapper and the statusAPI const (the lower-level internal/api/api.go GetStatus is kept intact since it's tested independently) - Remove getNonProcessedImportInfos and getImportStatus (dead code) - Always pre-fetch bulk status in Upload and always use bulk status in checkForDuplicatesDueToOffset / provideInProgressImportInfos Tests: - Drop GetStatus from mockAPI; remove getStatusOutputMap from all test literals; add getBulkStatusOutputMap entries to Upload tests that pre-cache channels - Delete tests that exclusively exercised the deprecated path (the 5 'Poll status invalid' tests with a non-bulk variant, the table-driven provideInProgressImportInfos non-bulk test, and the non-bulk 'Upload with duplicate ids due to offset' test); their bulk-status variants are kept - Rename the bulk variants to drop the 'with bulk status enabled' suffix - Convert remaining Poll tests (in progress, success, error, 404, caching, unexpected state, threshold) to use bulk-status mocks - Drop the now-redundant 'many table (bulk status enabled)' integration subtest (duplicate of the existing 'many tables' test once bulk-status is the only path) 🔒 Scanned for secrets using gitleaks 8.29.1
achettyiitr
force-pushed
the
chore/snowpipe-remove-bulkstatus-flag
branch
from
May 24, 2026 14:17
1c963ce to
4b079b9
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6992 +/- ##
==========================================
+ Coverage 79.79% 80.04% +0.25%
==========================================
Files 565 565
Lines 63801 63699 -102
==========================================
+ Hits 50907 50987 +80
+ Misses 9885 9684 -201
- Partials 3009 3028 +19 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
shekhar-rudder
approved these changes
May 25, 2026
krishna2020
approved these changes
May 25, 2026
atzoum
added a commit
that referenced
this pull request
May 26, 2026
# Description Syncing release v1.76.0 to main branch **WARNING: Do NOT rewrite git history and ALWAYS use a "Merge Commit" for merging!** **↓↓ Please review and edit commit overrides before merging ↓↓** BEGIN_COMMIT_OVERRIDE fix: flaky cluster test (#7003) chore: remove deprecated bulkStatusEnabled flag for snowpipe streaming (#6992) feat(jobsdb): versioned dataset list and non-blocking drop for completed datasets (#6962) END_COMMIT_OVERRIDE
This was referenced Jun 8, 2026
Closed
itsmihir
pushed a commit
that referenced
this pull request
Jun 8, 2026
🤖 I have created a release *beep* *boop* --- ## [1.77.0-rc.1](v1.76.0...v1.77.0-rc.1) (2026-06-08) ### Features * **jobsdb:** deferred status table lock during compaction ([#7020](#7020)) ([d156057](d156057)) * **jobsdb:** non-blocking dataset compaction ([#6967](#6967)) ([e0838dc](e0838dc)) * **jobsdb:** versioned dataset list and non-blocking drop for completed datasets ([#6962](#6962)) ([d7fe1ae](d7fe1ae)) ### Bug Fixes * flaky cluster test ([#7003](#7003)) ([d7fe1ae](d7fe1ae)) * **jobsdb:** pq 42P01 error when trying to store to a dataset that has been dropped ([#7041](#7041)) ([9db406d](9db406d)) * server panics with sql database is closed in case of an etcd error ([#7023](#7023)) ([15dc39a](15dc39a)) * support scoped batchrouter datePrefixOverride ([#7037](#7037)) ([9e8a0a8](9e8a0a8)) ### Miscellaneous * capture scheduler lag in stats ([#7017](#7017)) ([0dcf2b4](0dcf2b4)) * **deps:** bump actions/create-github-app-token from 3.0.0 to 3.1.1 ([#6969](#6969)) ([ee7f735](ee7f735)) * **deps:** bump actions/create-github-app-token from 3.1.1 to 3.2.0 ([#7013](#7013)) ([ac5681b](ac5681b)) * **deps:** bump actions/labeler from 5.0.0 to 6.1.0 ([#6970](#6970)) ([e748b86](e748b86)) * **deps:** bump actions/stale from 10.2.0 to 10.3.0 ([#7031](#7031)) ([6cf6804](6cf6804)) * **deps:** bump aws-actions/amazon-ecr-login from 2.1.4 to 2.1.5 ([#6972](#6972)) ([e38a99d](e38a99d)) * **deps:** bump aws-actions/configure-aws-credentials from 5.0.0 to 6.1.1 ([#6971](#6971)) ([1114b7f](1114b7f)) * **deps:** bump aws-actions/configure-aws-credentials from 6.1.1 to 6.1.2 ([#7049](#7049)) ([e210e68](e210e68)) * **deps:** bump codecov/codecov-action from 6.0.0 to 6.0.1 ([#7016](#7016)) ([3d639f5](3d639f5)) * **deps:** bump docker/login-action from 4.1.0 to 4.2.0 ([#7035](#7035)) ([b39183b](b39183b)) * **deps:** bump docker/metadata-action from 6.0.0 to 6.1.0 ([#7032](#7032)) ([574f7c8](574f7c8)) * **deps:** bump docker/setup-buildx-action from 4.0.0 to 4.1.0 ([#7034](#7034)) ([ff49009](ff49009)) * **deps:** bump golangci/golangci-lint-action from 8.0.0 to 9.2.1 ([#7044](#7044)) ([56070dc](56070dc)) * **deps:** bump slackapi/slack-github-action from 3.0.1 to 3.0.3 ([#6968](#6968)) ([fd70e60](fd70e60)) * **deps:** bump step-security/harden-runner from 2.19.1 to 2.19.3 ([#7012](#7012)) ([b4dc9b2](b4dc9b2)) * **deps:** bump step-security/harden-runner from 2.19.3 to 2.19.4 ([#7033](#7033)) ([ba82100](ba82100)) * **jobsdb:** avoid refreshing ds list from database in case of a stale ds error while updating job statuses ([#7024](#7024)) ([de98ede](de98ede)) * **jobsdb:** lateral join for getting jobs ([#7007](#7007)) ([7148a30](7148a30)) * remove deprecated bulkStatusEnabled flag for snowpipe streaming ([#6992](#6992)) ([d7fe1ae](d7fe1ae)) --- 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: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
This was referenced Jun 8, 2026
Closed
atzoum
pushed a commit
that referenced
this pull request
Jun 8, 2026
🤖 I have created a release *beep* *boop* --- ## [1.77.0-rc.2](v1.76.0...v1.77.0-rc.2) (2026-06-08) ### Features * **jobsdb:** deferred status table lock during compaction ([#7020](#7020)) ([d156057](d156057)) * **jobsdb:** non-blocking dataset compaction ([#6967](#6967)) ([e0838dc](e0838dc)) * **jobsdb:** versioned dataset list and non-blocking drop for completed datasets ([#6962](#6962)) ([d7fe1ae](d7fe1ae)) ### Bug Fixes * flaky cluster test ([#7003](#7003)) ([d7fe1ae](d7fe1ae)) * **jobsdb:** pq 42P01 error when trying to store to a dataset that has been dropped ([#7041](#7041)) ([9db406d](9db406d)) * **jobsdb:** stale table count gauge after dropping dataset async ([#7063](#7063)) ([4abb293](4abb293)) * server panics with sql database is closed in case of an etcd error ([#7023](#7023)) ([15dc39a](15dc39a)) * support scoped batchrouter datePrefixOverride ([#7037](#7037)) ([9e8a0a8](9e8a0a8)) ### Miscellaneous * capture scheduler lag in stats ([#7017](#7017)) ([0dcf2b4](0dcf2b4)) * **deps:** bump actions/create-github-app-token from 3.0.0 to 3.1.1 ([#6969](#6969)) ([ee7f735](ee7f735)) * **deps:** bump actions/create-github-app-token from 3.1.1 to 3.2.0 ([#7013](#7013)) ([ac5681b](ac5681b)) * **deps:** bump actions/labeler from 5.0.0 to 6.1.0 ([#6970](#6970)) ([e748b86](e748b86)) * **deps:** bump actions/stale from 10.2.0 to 10.3.0 ([#7031](#7031)) ([6cf6804](6cf6804)) * **deps:** bump aws-actions/amazon-ecr-login from 2.1.4 to 2.1.5 ([#6972](#6972)) ([e38a99d](e38a99d)) * **deps:** bump aws-actions/configure-aws-credentials from 5.0.0 to 6.1.1 ([#6971](#6971)) ([1114b7f](1114b7f)) * **deps:** bump aws-actions/configure-aws-credentials from 6.1.1 to 6.1.2 ([#7049](#7049)) ([e210e68](e210e68)) * **deps:** bump codecov/codecov-action from 6.0.0 to 6.0.1 ([#7016](#7016)) ([3d639f5](3d639f5)) * **deps:** bump docker/login-action from 4.1.0 to 4.2.0 ([#7035](#7035)) ([b39183b](b39183b)) * **deps:** bump docker/metadata-action from 6.0.0 to 6.1.0 ([#7032](#7032)) ([574f7c8](574f7c8)) * **deps:** bump docker/setup-buildx-action from 4.0.0 to 4.1.0 ([#7034](#7034)) ([ff49009](ff49009)) * **deps:** bump golangci/golangci-lint-action from 8.0.0 to 9.2.1 ([#7044](#7044)) ([56070dc](56070dc)) * **deps:** bump slackapi/slack-github-action from 3.0.1 to 3.0.3 ([#6968](#6968)) ([fd70e60](fd70e60)) * **deps:** bump step-security/harden-runner from 2.19.1 to 2.19.3 ([#7012](#7012)) ([b4dc9b2](b4dc9b2)) * **deps:** bump step-security/harden-runner from 2.19.3 to 2.19.4 ([#7033](#7033)) ([ba82100](ba82100)) * **jobsdb:** avoid refreshing ds list from database in case of a stale ds error while updating job statuses ([#7024](#7024)) ([de98ede](de98ede)) * **jobsdb:** lateral join for getting jobs ([#7007](#7007)) ([7148a30](7148a30)) * remove deprecated bulkStatusEnabled flag for snowpipe streaming ([#6992](#6992)) ([d7fe1ae](d7fe1ae)) --- 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: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
This was referenced Jun 8, 2026
Merged
atzoum
pushed a commit
that referenced
this pull request
Jun 8, 2026
🤖 I have created a release *beep* *boop* --- ## [1.77.0-rc.3](v1.76.0...v1.77.0-rc.3) (2026-06-08) ### Features * **jobsdb:** deferred status table lock during compaction ([#7020](#7020)) ([d156057](d156057)) * **jobsdb:** non-blocking dataset compaction ([#6967](#6967)) ([e0838dc](e0838dc)) * **jobsdb:** versioned dataset list and non-blocking drop for completed datasets ([#6962](#6962)) ([d7fe1ae](d7fe1ae)) ### Bug Fixes * flaky cluster test ([#7003](#7003)) ([d7fe1ae](d7fe1ae)) * **jobsdb:** jobsdb_lock_total_time for dsMigrationLock missing ([#7066](#7066)) ([7e00370](7e00370)) * **jobsdb:** pq 42P01 error when trying to store to a dataset that has been dropped ([#7041](#7041)) ([9db406d](9db406d)) * **jobsdb:** stale table count gauge after dropping dataset async ([#7063](#7063)) ([4abb293](4abb293)) * server panics with sql database is closed in case of an etcd error ([#7023](#7023)) ([15dc39a](15dc39a)) * support scoped batchrouter datePrefixOverride ([#7037](#7037)) ([9e8a0a8](9e8a0a8)) ### Miscellaneous * capture scheduler lag in stats ([#7017](#7017)) ([0dcf2b4](0dcf2b4)) * **deps:** bump actions/create-github-app-token from 3.0.0 to 3.1.1 ([#6969](#6969)) ([ee7f735](ee7f735)) * **deps:** bump actions/create-github-app-token from 3.1.1 to 3.2.0 ([#7013](#7013)) ([ac5681b](ac5681b)) * **deps:** bump actions/labeler from 5.0.0 to 6.1.0 ([#6970](#6970)) ([e748b86](e748b86)) * **deps:** bump actions/stale from 10.2.0 to 10.3.0 ([#7031](#7031)) ([6cf6804](6cf6804)) * **deps:** bump aws-actions/amazon-ecr-login from 2.1.4 to 2.1.5 ([#6972](#6972)) ([e38a99d](e38a99d)) * **deps:** bump aws-actions/configure-aws-credentials from 5.0.0 to 6.1.1 ([#6971](#6971)) ([1114b7f](1114b7f)) * **deps:** bump aws-actions/configure-aws-credentials from 6.1.1 to 6.1.2 ([#7049](#7049)) ([e210e68](e210e68)) * **deps:** bump codecov/codecov-action from 6.0.0 to 6.0.1 ([#7016](#7016)) ([3d639f5](3d639f5)) * **deps:** bump docker/login-action from 4.1.0 to 4.2.0 ([#7035](#7035)) ([b39183b](b39183b)) * **deps:** bump docker/metadata-action from 6.0.0 to 6.1.0 ([#7032](#7032)) ([574f7c8](574f7c8)) * **deps:** bump docker/setup-buildx-action from 4.0.0 to 4.1.0 ([#7034](#7034)) ([ff49009](ff49009)) * **deps:** bump golangci/golangci-lint-action from 8.0.0 to 9.2.1 ([#7044](#7044)) ([56070dc](56070dc)) * **deps:** bump slackapi/slack-github-action from 3.0.1 to 3.0.3 ([#6968](#6968)) ([fd70e60](fd70e60)) * **deps:** bump step-security/harden-runner from 2.19.1 to 2.19.3 ([#7012](#7012)) ([b4dc9b2](b4dc9b2)) * **deps:** bump step-security/harden-runner from 2.19.3 to 2.19.4 ([#7033](#7033)) ([ba82100](ba82100)) * **jobsdb:** avoid refreshing ds list from database in case of a stale ds error while updating job statuses ([#7024](#7024)) ([de98ede](de98ede)) * **jobsdb:** lateral join for getting jobs ([#7007](#7007)) ([7148a30](7148a30)) * remove deprecated bulkStatusEnabled flag for snowpipe streaming ([#6992](#6992)) ([d7fe1ae](d7fe1ae)) --- 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: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
itsmihir
pushed a commit
that referenced
this pull request
Jun 9, 2026
🤖 I have created a release *beep* *boop* --- ## [1.77.0](v1.76.0...v1.77.0) (2026-06-08) ### Features * **jobsdb:** deferred status table lock during compaction ([#7020](#7020)) ([d156057](d156057)) * **jobsdb:** non-blocking dataset compaction ([#6967](#6967)) ([e0838dc](e0838dc)) * **jobsdb:** versioned dataset list and non-blocking drop for completed datasets ([#6962](#6962)) ([d7fe1ae](d7fe1ae)) ### Bug Fixes * flaky cluster test ([#7003](#7003)) ([d7fe1ae](d7fe1ae)) * **jobsdb:** jobsdb_lock_total_time for dsMigrationLock missing ([#7066](#7066)) ([7e00370](7e00370)) * **jobsdb:** pq 42P01 error when trying to store to a dataset that has been dropped ([#7041](#7041)) ([9db406d](9db406d)) * **jobsdb:** stale table count gauge after dropping dataset async ([#7063](#7063)) ([4abb293](4abb293)) * server panics with sql database is closed in case of an etcd error ([#7023](#7023)) ([15dc39a](15dc39a)) * support scoped batchrouter datePrefixOverride ([#7037](#7037)) ([9e8a0a8](9e8a0a8)) ### Miscellaneous * capture scheduler lag in stats ([#7017](#7017)) ([0dcf2b4](0dcf2b4)) * **deps:** bump actions/create-github-app-token from 3.0.0 to 3.1.1 ([#6969](#6969)) ([ee7f735](ee7f735)) * **deps:** bump actions/create-github-app-token from 3.1.1 to 3.2.0 ([#7013](#7013)) ([ac5681b](ac5681b)) * **deps:** bump actions/labeler from 5.0.0 to 6.1.0 ([#6970](#6970)) ([e748b86](e748b86)) * **deps:** bump actions/stale from 10.2.0 to 10.3.0 ([#7031](#7031)) ([6cf6804](6cf6804)) * **deps:** bump aws-actions/amazon-ecr-login from 2.1.4 to 2.1.5 ([#6972](#6972)) ([e38a99d](e38a99d)) * **deps:** bump aws-actions/configure-aws-credentials from 5.0.0 to 6.1.1 ([#6971](#6971)) ([1114b7f](1114b7f)) * **deps:** bump aws-actions/configure-aws-credentials from 6.1.1 to 6.1.2 ([#7049](#7049)) ([e210e68](e210e68)) * **deps:** bump codecov/codecov-action from 6.0.0 to 6.0.1 ([#7016](#7016)) ([3d639f5](3d639f5)) * **deps:** bump docker/login-action from 4.1.0 to 4.2.0 ([#7035](#7035)) ([b39183b](b39183b)) * **deps:** bump docker/metadata-action from 6.0.0 to 6.1.0 ([#7032](#7032)) ([574f7c8](574f7c8)) * **deps:** bump docker/setup-buildx-action from 4.0.0 to 4.1.0 ([#7034](#7034)) ([ff49009](ff49009)) * **deps:** bump golangci/golangci-lint-action from 8.0.0 to 9.2.1 ([#7044](#7044)) ([56070dc](56070dc)) * **deps:** bump slackapi/slack-github-action from 3.0.1 to 3.0.3 ([#6968](#6968)) ([fd70e60](fd70e60)) * **deps:** bump step-security/harden-runner from 2.19.1 to 2.19.3 ([#7012](#7012)) ([b4dc9b2](b4dc9b2)) * **deps:** bump step-security/harden-runner from 2.19.3 to 2.19.4 ([#7033](#7033)) ([ba82100](ba82100)) * **jobsdb:** avoid refreshing ds list from database in case of a stale ds error while updating job statuses ([#7024](#7024)) ([de98ede](de98ede)) * **jobsdb:** lateral join for getting jobs ([#7007](#7007)) ([7148a30](7148a30)) * remove deprecated bulkStatusEnabled flag for snowpipe streaming ([#6992](#6992)) ([d7fe1ae](d7fe1ae)) --- 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: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
Merged
1 task done
shekhar-rudder
added a commit
that referenced
this pull request
Jul 9, 2026
…tus at stuck threshold (#7166) ## Description The Snowflake Ingest SDK has a bug ([snowflake-ingest-java#1154](snowflakedb/snowflake-ingest-java#1154)) where the **batch** channel-status method silently ignores server-side failure status codes (e.g. `status_code=35`) and reports channels as `valid=true` even when Snowflake has flagged them broken. Our snowpipe-streaming consumer polls channel status via the **bulk-status** endpoint. When a channel is silently broken, bulk-status keeps returning `valid=true`, so the consumer never enters its normal invalid-channel recovery path. Instead it keeps polling until the **15-minute stuck-pipeline threshold** trips, at which point it logs `"Stuck snowpipe pipeline detected"` (an alert) and fails all in-progress jobs — a 15-minute delay, misreported as a stuck pipeline. ## Change At the stuck-pipeline threshold in `Manager.Poll`, each still-in-progress channel is re-checked via the **single-channel** status endpoint (`GetStatus`), which correctly surfaces server-side failures (the per-channel method throws, and the snowpipe service returns `success=false`/`valid=false`). - **Confirmed invalid** channels (`!Valid || !Success`) are failed through the normal failed-import path (channel deleted, jobs retried next batch) **without** the `"Stuck snowpipe pipeline detected"` alert. - **Genuinely stuck** channels (single-channel check still reports valid) keep the existing alert + `"events still in progress after threshold…"` failure reason. - **Inconclusive** checks (the `GetStatus` call itself errors) are treated as stuck — fail-safe: the alert is suppressed only on a positive invalid confirmation. This re-wires `GetStatus` back into the `api` interface and `apiAdapter` (the reverse of #6992, which had removed the per-channel path when bulk-status became the default). The lower-level `internal/api/api.go` `GetStatus` was kept intact by that commit, so no new client code is needed. No change is required in `rudder-snowpipe-clients` — its single-channel `/channels/{id}/status` endpoint already surfaces broken channels. Once the upstream SDK fix ships, this per-channel recheck can be removed. ## Tests - Re-added `mockAPI.GetStatus` + `getStatusOutputMap`. - Updated the existing "marks in-progress imports as failed after threshold" test so the single-channel check reports valid (genuinely-stuck path unchanged). - Added "recovers invalid channel at threshold without stuck-pipeline alert" (invalid → per-channel-invalid reason, no alert). - Added "treats inconclusive single-channel check at threshold as stuck" (`GetStatus` errors → stuck reason, fail-safe). Verified with `go build`, full-package `go test`, `gofmt`, and `go vet`. ## Linear Ticket - Resolves INT-6530 ## 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. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
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
The bulk-status path has been tested at flags=true and works correctly, so we can drop the deprecated per-channel GetStatus path and the flag.
Tests:
Linear Ticket
Security