Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: illegal job sequence during barrier enter in router pickup #3737

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

atzoum
Copy link
Contributor

@atzoum atzoum commented Aug 10, 2023

Description

During router's pickup iteration, while trying to find an available worker slot, if the barrier forbids the job to enter, this job needs to be added to the blockedOrderKeys, so that no other job for the same ordering key can be picked up in this iteration.

Even though the barrier is synced only once before the router iterator's loop begins, the barrier's two limiters (concurrency & drain) are updated in realtime and can at any time fill or empty causing barrier#Enter's response to vary.

Linear Ticket

Link

Security

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

@codecov
Copy link

codecov bot commented Aug 10, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.25% 🎉

Comparison is base (c948122) 68.09% compared to head (750ae70) 68.35%.
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3737      +/-   ##
==========================================
+ Coverage   68.09%   68.35%   +0.25%     
==========================================
  Files         333      334       +1     
  Lines       51454    51517      +63     
==========================================
+ Hits        35038    35213     +175     
+ Misses      14133    14043      -90     
+ Partials     2283     2261      -22     
Files Changed Coverage Δ
router/handle.go 73.20% <100.00%> (+0.71%) ⬆️

... and 28 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cisse21 cisse21 merged commit 5017146 into master Aug 10, 2023
42 checks passed
@cisse21 cisse21 deleted the fix.routerOrder branch August 10, 2023 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants