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

send queue: wake up the sending task after editing an event #3631

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

bnjbvr
Copy link
Member

@bnjbvr bnjbvr commented Jul 1, 2024

It could be that the last event in a room's send queue has been marked as wedged. In that case, the task will sleep until it's notified again. If the event is being edited, then nothing would wake up the task; a manual wakeup might be required in that case.

The new integration test shows the issue; the last assert_update would fail with a timeout before this patch.

Part of #3361.

@bnjbvr bnjbvr requested a review from a team as a code owner July 1, 2024 12:42
@bnjbvr bnjbvr requested review from Hywan and removed request for a team July 1, 2024 12:42
It could be that the last event in a room's send queue has been marked
as wedged. In that case, the task will sleep until it's notified again.
If the event is being edited, then nothing would wake up the task; a
manual wakeup might be required in that case.

The new integration test shows the issue; the last `assert_update` would
fail with a timeout before this patch.
@bnjbvr bnjbvr force-pushed the bnjbvr/wake-up-send-q-after-editing branch from 08ec617 to 00f3bb5 Compare July 1, 2024 12:46
@bnjbvr
Copy link
Member Author

bnjbvr commented Jul 1, 2024

Thanks for the quick review! (The force-push was for edits to the comments in the test code.)

@bnjbvr bnjbvr enabled auto-merge (rebase) July 1, 2024 12:48
Copy link

codecov bot commented Jul 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.19%. Comparing base (a34e196) to head (97993e8).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3631      +/-   ##
==========================================
- Coverage   84.21%   84.19%   -0.02%     
==========================================
  Files         256      256              
  Lines       26583    26584       +1     
==========================================
- Hits        22387    22383       -4     
- Misses       4196     4201       +5     

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

@bnjbvr bnjbvr merged commit 16aa6df into main Jul 1, 2024
39 checks passed
@bnjbvr bnjbvr deleted the bnjbvr/wake-up-send-q-after-editing branch July 1, 2024 13:44
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