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

/sync incorrectly calculates state changes for non-gappy syncs with lazy-loading #17050

Open
Tracked by #245
richvdh opened this issue Apr 4, 2024 · 0 comments
Open
Tracked by #245

Comments

@richvdh
Copy link
Member

richvdh commented Apr 4, 2024

Consider the following DAG:

             E1
           ↗    ↖
          |      S2
          |
        --|---
          |
          E3

Now, unlike the gappy sync case, we can't really blame this on the client: there is no indication that events or state may be missing, though per matrix-org/matrix-spec#942 (comment) it would be nice if the spec actually told us the right thing to do here.

Anyway, I think really this is a consequence of #16940: if that were fixed, then we wouldn't be in the situation of needing to send S2 in the incremental sync.

I'm calling it out as a separate issue because:

  • The trigger conditions are a bit different.
  • We could work around it by disabling lazy-loading for all incremental syncs, and indeed maybe we should.
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

No branches or pull requests

1 participant