-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Faster joins: check for partial state when handling backfill #13002
Comments
A proposed fix which calculates the partial state flag for the backfilled event: I'll try writing a test for it, but it looks slightly tricky to set up. |
It turns out that Except now
and I'm stuck because it's unclear to me what should happen when we have partial state there. |
I think we discussed this in a DM. To record our conclusions: for now at least, we should just skip the soft-fail check when we have partial state. Hopefully state will sync up quick enough that it won't open too much of an abuse vector, but in any case we can improve this in the future. |
Associated complement tests: matrix-org/complement#419 |
Suppose:
I think there is a bug here whereby we will incorrectly assume we have full state at the start of the backfilled chunk, which sounds messy.
synapse/synapse/handlers/federation_event.py
Lines 778 to 785 in 7c6b220
Part of #12646
The text was updated successfully, but these errors were encountered: