[GSoC 2026] Active cleanup of orphaned subscriptions for the taxirides topic - #39728
Open
HansMarcus01 wants to merge 1 commit into
Open
[GSoC 2026] Active cleanup of orphaned subscriptions for the taxirides topic#39728HansMarcus01 wants to merge 1 commit into
HansMarcus01 wants to merge 1 commit into
Conversation
…taxirides` topic.
Contributor
|
Assigning reviewers: R: @Abacn added as fallback since no labels match configuration Note: If you would like to opt out of this review, comment Available commands:
The PR bot will only process comments in the main thread (not review comments). |
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.
Summary of Changes
This pull request switches the execution mode of the Pub/Sub subscription cleaner for NYC taxi rides from simulation to active deletion by changing
dry_run=Truetodry_run=Falseinside:stale_cleaner.py➔clean_pubsub_subscriptions()Why This Change is Safe (7-Day Empirical Validation)
Prior to enabling active deletion, we ran the subscription cleaner in
dry_run=True(Simulation Mode) for 7 days (from August 4, 2026, to August 11, 2026).We monitored the state of the tracked resources by periodically downloading and analyzing the JSON audit state stored in GCS:
gs://apache-beam-testing-pabloem/stale_cleaner/pubsub_subscription.jsonKey Empirical Findings:
taxirides-realtime_beam_-...created on August 4 remained active, completely unconsumed, and were continuously updated every single day until August 11 without being acknowledged.JSON State Evidence (August 11 Audit):
{ "projects/apache-beam-testing/subscriptions/taxirides-realtime_beam_-6413074580631200911": { "resource_name": "projects/apache-beam-testing/subscriptions/taxirides-realtime_beam_-6413074580631200911", "creation_date": "2026-08-04T00:53:24.441535", "last_update_date": "2026-08-11T12:24:57.889076" }, "projects/apache-beam-testing/subscriptions/taxirides-realtime_beam_3858484106805878348": { "resource_name": "projects/apache-beam-testing/subscriptions/taxirides-realtime_beam_3858484106805878348", "creation_date": "2026-08-04T00:53:24.441562", "last_update_date": "2026-08-11T12:24:57.889077" } }Verification & Testing
taxirides-realtime_beam_.