Skip to content

fix: pending batch router jobs for disabled destinations are not being aborted - #6477

Merged
atzoum merged 2 commits into
masterfrom
fix.disabledBatchRtDests
Oct 31, 2025
Merged

atzoum merged 2 commits into
masterfrom
fix.disabledBatchRtDests

Conversation

@atzoum

@atzoum atzoum commented Oct 29, 2025 •

Copy link
Copy Markdown
Contributor

🔒 Scanned for secrets using gitleaks 8.28.0

Description

When the batch router operated in destination isolation mode, it failed to pick up jobs for disabled destinations because it filtered eligible partitions based on their presence in the batch router's destinations map. Since the map only contained enabled destinations, the disabled ones were ignored.

The issue is now resolved by including disabled destinations in the destinations map. This allows jobs to be picked up while still being marked for draining by the drainer.

Verifying behaviour with an integration test for each isolation mode

Linear Ticket

fixes PIPE-2501

Security

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

@atzoum
atzoum marked this pull request as ready for review October 29, 2025 14:04
…g aborted

🔒 Scanned for secrets using gitleaks 8.28.0
@atzoum
atzoum force-pushed the fix.disabledBatchRtDests branch from c142bda to db1960b Compare October 29, 2025 14:07
@codecov

codecov Bot commented Oct 29, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.27%. Comparing base (8634c3f) to head (9337e4d).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6477      +/-   ##
==========================================
+ Coverage   79.25%   79.27%   +0.01%     
==========================================
  Files         529      529              
  Lines       59365    59365              
==========================================
+ Hits        47049    47059      +10     
+ Misses       9495     9494       -1     
+ Partials     2821     2812       -9     

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

🔒 Scanned for secrets using gitleaks 8.28.0
"type": "cloud"
},
"name": "Test",
"writeKey": "2Ia21P796M61LiiV4pZoOOfPvln",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lvrach this was detected by gitleaks as a generic-api-key

@mihir20 mihir20 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@atzoum
atzoum merged commit 8effa78 into master Oct 31, 2025
@atzoum
atzoum deleted the fix.disabledBatchRtDests branch October 31, 2025 12:39
achettyiitr pushed a commit that referenced this pull request Nov 5, 2025
…g aborted (#6477)

🔒 Scanned for secrets using gitleaks 8.28.0

# Description

When the batch router operated in destination isolation mode, it failed
to pick up jobs for disabled destinations because it filtered eligible
partitions based on their presence in the batch router's destinations
map. Since the map only contained enabled destinations, the disabled
ones were ignored.

The issue is now resolved by including disabled destinations in the
destinations map. This allows jobs to be picked up while still being
marked for draining by the drainer.

Verifying behaviour with an integration test for each isolation mode

## Linear Ticket

fixes PIPE-2501

## 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.
This was referenced Nov 11, 2025
itsmihir pushed a commit that referenced this pull request Nov 11, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.63.0-rc.1](v1.62.0...v1.63.0-rc.1)
(2025-11-11)


### Features

* **router:** dynamic sizing of worker job buffers
([#6463](#6463))
([5b2e519](5b2e519))


### Bug Fixes

* max procs defaults
([#6473](#6473))
([48f9cfd](48f9cfd))
* max procs defaults
([#6473](#6473))
([3d2026c](3d2026c))
* pending batch router jobs for disabled destinations are not being
aborted
([#6477](#6477))
([8effa78](8effa78))
* remove source labels in repo query stats
([#6483](#6483))
([48f9cfd](48f9cfd))
* use type field from payload to check if event is blocked
([#6487](#6487))
([5ba053f](5ba053f))


### Miscellaneous

* apply security best practices from step security
([#6462](#6462))
([a860128](a860128))
* emit filtered metrics from all non-ut stages and clean up diff metrics
([#6485](#6485))
([399c4c6](399c4c6))
* refactor processor to move archival in a preprocess stage
([#6470](#6470))
([8634c3f](8634c3f))
* remove oauth status toggling
([#6492](#6492))
([45e5dba](45e5dba))
* sync release v1.62.0 to main branch
([#6472](#6472))
([65db4ee](65db4ee))

---
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 Nov 12, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.63.0](v1.62.0...v1.63.0)
(2025-11-11)


### Features

* **router:** dynamic sizing of worker job buffers
([#6463](#6463))
([5b2e519](5b2e519))


### Bug Fixes

* max procs defaults
([#6473](#6473))
([48f9cfd](48f9cfd))
* max procs defaults
([#6473](#6473))
([3d2026c](3d2026c))
* pending batch router jobs for disabled destinations are not being
aborted
([#6477](#6477))
([8effa78](8effa78))
* remove source labels in repo query stats
([#6483](#6483))
([48f9cfd](48f9cfd))
* use type field from payload to check if event is blocked
([#6487](#6487))
([5ba053f](5ba053f))


### Miscellaneous

* apply security best practices from step security
([#6462](#6462))
([a860128](a860128))
* emit filtered metrics from all non-ut stages and clean up diff metrics
([#6485](#6485))
([399c4c6](399c4c6))
* refactor processor to move archival in a preprocess stage
([#6470](#6470))
([8634c3f](8634c3f))
* remove oauth status toggling
([#6492](#6492))
([45e5dba](45e5dba))
* sync release v1.62.0 to main branch
([#6472](#6472))
([65db4ee](65db4ee))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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