Skip to content

timeline: keep in sync with the event cache after a clear() #3312

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

Closed
wants to merge 1 commit into from

Conversation

bnjbvr
Copy link
Member

@bnjbvr bnjbvr commented Apr 9, 2024

See #3311 for a stream of consciousness explaining why this is needed.

bnjbvr added a commit that referenced this pull request Apr 11, 2024
…dates`

This protects against the sliding sync proxy (or synapse) sending lots
of duplicate fully read marker events for the same room in case of
reset. This would lead to forwarding lots and lots of
`RoomEventCacheUpdate`s to the timeline, cluttering the channel, and
resulting in a lag. This lag would then clear the timeline, seemingly
cause missing chunks from history.

#3312 is likely the
long term fix (after a clear(), the timeline should retrieve all the
memoized events from the event cache), but this should prevent the root
cause of the spamming in the first place, getting us back to a safe
state.
bnjbvr added a commit that referenced this pull request Apr 11, 2024
…dates`

This protects against the sliding sync proxy (or synapse) sending lots
of duplicate fully read marker events for the same room in case of
reset. This would lead to forwarding lots and lots of
`RoomEventCacheUpdate`s to the timeline, cluttering the channel, and
resulting in a lag. This lag would then clear the timeline, seemingly
cause missing chunks from history.

#3312 is likely the
long term fix (after a clear(), the timeline should retrieve all the
memoized events from the event cache), but this should prevent the root
cause of the spamming in the first place, getting us back to a safe
state.
@bnjbvr
Copy link
Member Author

bnjbvr commented Apr 19, 2024

It's too broad, we only need this when we get a lag from the event cache.

@bnjbvr bnjbvr closed this Apr 19, 2024
@bnjbvr bnjbvr deleted the bnjbvr/quickfix-clear-then-append-events branch April 19, 2024 13:27
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.

1 participant