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

Add some debug to keep track of client state desynchronisation #16952

Closed
wants to merge 12 commits into from

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Feb 22, 2024

This attempts to add some logging to see how often the client is ending up with room state that differs from the "current state". As the comments say, this should catch things caused by both state changes outside the timeline (matrix-org/matrix-spec#1209), and the fact that Synapse doesn't actually return the current state (#16940).

Fixes https://github.com/element-hq/crypto-internal/issues/179

Based on #16942

@richvdh richvdh force-pushed the rav/log_state_desync branch 2 times, most recently from 463d6e6 to e41a755 Compare February 23, 2024 17:59
@richvdh richvdh marked this pull request as ready for review February 26, 2024 14:08
@richvdh richvdh requested a review from a team as a code owner February 26, 2024 14:08
@richvdh richvdh marked this pull request as draft February 26, 2024 19:16
@richvdh
Copy link
Member Author

richvdh commented Feb 26, 2024

Putting this back in draft for now. It's really not obvious to me that this is going to tell us anything useful.

@erikjohnston erikjohnston removed the request for review from a team March 14, 2024 13:51
... to represent the last point in the room we actually want to return state
from.
Pass the `end_token` down into `compute_state_delta` instead of `now_token`,
and use it to calculate the state at the end of the timeline.
Fix an issue which could cause state to be omitted from the sync response if
the last event was filtered out.

Fixes: #16928
Unfortunately, the optimisation we applied here for non-gappy syncs is not
actually valid.
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