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

event_forward_extremities are not correctly cleared by persistence of successor events #8913

Open
matrixbot opened this issue Dec 18, 2023 · 0 comments

Comments

@matrixbot
Copy link
Collaborator

matrixbot commented Dec 18, 2023

This issue has been migrated from #8913.


Suppose:

  • we have a linear event DAG, A <- B <- ... <- C, where C is a regular event, which references B in its state.
  • our homeserver has persisted up to event A, hence has a single event_forward_extremity of A.
  • our homeserver goes offline for a bit, so misses out on B and immediate successors
  • our homeserver receives C over federation, hence pulls in B to complete the state at C

Empirically:

  • we have all the state we need for B: it is not marked as an outlier
  • we end up with event_forward_extremities of A and C

We have all the successors for A we should ever expect to receive, so I assert that it should no longer be considered an extremity. In particular, there is no way it will ever cease to be a forward extremity, so it contributes to the accumulation of forward extremities (cf #1760).

@matrixbot matrixbot changed the title Dummy issue event_forward_extremities are not correctly cleared by persistence of successor events Dec 21, 2023
@matrixbot matrixbot reopened this Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant