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 ordering issues in requesting backfill #3530

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

neilalexander
Copy link
Contributor

@neilalexander neilalexander commented Feb 18, 2025

Using a map means the events are processed in an indeterminate order, which causes a lot of /state_ids requests as the prev_events are not known when the order is lost.

Signed-off-by: Neil Alexander git@neilalexander.dev

Using a map means the orders are processed in an indeterminate order,
which causes a lot of `/state_ids` requests as the `prev_events` are
not known when the order is lost.

Also topologically sort results from multiple servers when doing a
`RequestBackfill` just to be safe, since otherwise results retrieved
from multiple servers could end up out-of-order too.

Signed-off-by: Neil Alexander <git@neilalexander.dev>
@neilalexander neilalexander requested a review from a team as a code owner February 18, 2025 17:22
Signed-off-by: Neil Alexander <git@neilalexander.dev>
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Project coverage is 49.40%. Comparing base (06e25ca) to head (56bc4a9).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
roomserver/internal/perform/perform_backfill.go 0.00% 7 Missing ⚠️

❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (75.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3530      +/-   ##
==========================================
- Coverage   49.41%   49.40%   -0.02%     
==========================================
  Files         524      524              
  Lines       59817    59817              
==========================================
- Hits        29556    29550       -6     
- Misses      26772    26783      +11     
+ Partials     3489     3484       -5     
Flag Coverage Δ
unittests 49.40% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

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.

2 participants