Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Try putting room list handling behind a lock#6024

Merged
turt2live merged 3 commits into
developfrom
travis/roomlist-corruption
May 14, 2021
Merged

Try putting room list handling behind a lock#6024
turt2live merged 3 commits into
developfrom
travis/roomlist-corruption

Conversation

@turt2live
Copy link
Copy Markdown
Member

@turt2live turt2live commented May 13, 2021

Some of the logs relating to room list corruption appear to be badly timed race conditions so we'll try to linearize them here.

The diff looks complicated, but it's just wrapping handleRoomUpdate in a try/finally.

I have about a 4/10 confidence on this working, only because I can't reproduce the corruption by hand before or after the change.

turt2live added 2 commits May 12, 2021 21:15
Some of the logs relating to room list corruption appear to be badly timed race conditions so we'll try to linearize them here.
@turt2live turt2live requested a review from a team May 13, 2021 03:26
Copy link
Copy Markdown
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

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

looks plausible - github really butchered that diff though

Comment thread src/stores/room-list/algorithms/Algorithm.ts Outdated
Comment thread src/utils/MultiLock.ts Outdated
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants