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: scheduling race with the QueryScheduler #1347

Merged
merged 8 commits into from Dec 16, 2023
Merged

fix: scheduling race with the QueryScheduler #1347

merged 8 commits into from Dec 16, 2023

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Dec 16, 2023

We should always call reschedule instead of schedule in case one is already scheduled. The code assumed records are always delivered in order which would be nice, but does not reflect a real network

Copy link

codecov bot commented Dec 16, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9b595a1) 99.77% compared to head (bd99f29) 99.78%.
Report is 13 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1347   +/-   ##
=======================================
  Coverage   99.77%   99.78%           
=======================================
  Files          30       30           
  Lines        3164     3232   +68     
  Branches      528      536    +8     
=======================================
+ Hits         3157     3225   +68     
  Misses          5        5           
  Partials        2        2           

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

@bdraco bdraco changed the title fix: ensure correct scheduled query is removed from the heap fix: scheduling race with the QueryScheduler Dec 16, 2023
@bdraco bdraco merged commit cf40470 into master Dec 16, 2023
34 checks passed
@bdraco bdraco deleted the heappop_fix branch December 16, 2023 03:39
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.

None yet

1 participant