Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Faster joins: check compatibility with history import #13003

Closed
Tracked by #14030
richvdh opened this issue Jun 9, 2022 · 3 comments · Fixed by #14291
Closed
Tracked by #14030

Faster joins: check compatibility with history import #13003

richvdh opened this issue Jun 9, 2022 · 3 comments · Fixed by #14291
Assignees
Labels
A-Federated-Join joins over federation generally suck T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.

Comments

@richvdh
Copy link
Member

richvdh commented Jun 9, 2022

I suspect the MSC2716 code makes incorrect assumptions about whether state is complete at the insertion points.

state_ids = await self._resolve_state_at_missing_prevs(origin, event)
# TODO(faster_joins): make sure that _resolve_state_at_missing_prevs does
# not return partial state
# https://github.com/matrix-org/synapse/issues/13002
await self._process_received_pdu(
origin, event, state_ids=state_ids, backfilled=backfilled
)

@richvdh richvdh added A-Federated-Join joins over federation generally suck T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements. labels Jun 9, 2022
@richvdh richvdh added this to the Faster joins (further work) milestone Jun 9, 2022
@richvdh
Copy link
Member Author

richvdh commented Jun 9, 2022

cc @MadLittleMods

@MadLittleMods
Copy link
Contributor

Maybe. We need the full state at the event you insert next to (the /batch_send?prev_event_id) to inherit from. See:

@richvdh
Copy link
Member Author

richvdh commented Oct 4, 2022

We should just disallow history import for partial-state rooms

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Federated-Join joins over federation generally suck T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants