You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Gitter bridge seems to have reproduced a race condition in federation where because the appservice joins and sends a message in quick succession, the message can out run the join which causes the message to soft_fail.
To see an actual reproduction, there is a missing message in the !SrkiFczPSWmYrlSNYF:matrix.org room for matrix.org homeserver users ($mMJdjGPC2GaoWK3pLApa_O2vBoeuQwYtP6iY6XzbrfY). This is tracked on Gitter by https://gitlab.com/gitterHQ/webapp/-/issues/2770#note_583925093
The event exists in the gitter.im homeserver database and is visible to the gitter.im homeserver where the Gitter bridge appservice operates. The message is also visible to any new homeserver that comes in the room and backfills the messages. It's only not visible on the matrix.org homeserver.
The message also exists on the matrix.org homeserver database but is soft_failed (thanks to @richvdh for checking the database)
@Half-Shot has also seen this happen a few times with the IRC bridge.
As @leonerd from matrix-org/synapse#1444 and @Half-Shot mentioned, this is probably not a problem for normal users because the time taken to join and then send a message is some number of seconds. Whereas with appservices, can join and send an event in quick succession (almost instantly).
This issue has been migrated from #10066.
Description
The Gitter bridge seems to have reproduced a race condition in federation where because the appservice joins and sends a message in quick succession, the message can out run the
join
which causes the message tosoft_fail
.To see an actual reproduction, there is a missing message in the
!SrkiFczPSWmYrlSNYF:matrix.org
room formatrix.org
homeserver users ($mMJdjGPC2GaoWK3pLApa_O2vBoeuQwYtP6iY6XzbrfY
). This is tracked on Gitter by https://gitlab.com/gitterHQ/webapp/-/issues/2770#note_583925093The event exists in the
gitter.im
homeserver database and is visible to thegitter.im
homeserver where the Gitter bridge appservice operates. The message is also visible to any new homeserver that comes in the room and backfills the messages. It's only not visible on thematrix.org
homeserver.The message also exists on the
matrix.org
homeserver database but issoft_failed
(thanks to @richvdh for checking the database)@Half-Shot has also seen this happen a few times with the IRC bridge.
As @leonerd from matrix-org/synapse#1444 and @Half-Shot mentioned, this is probably not a problem for normal users because the time taken to join and then send a message is some number of seconds. Whereas with appservices, can join and send an event in quick succession (almost instantly).
Related issues:
federation_inbound
worker is busyjoin
, set profile,membership
event (not over federation though).Steps to reproduce
!my-room:hs1
!my-room:hs1
join
and message event from HS2Version information
gitter.im
->matrix.org
The text was updated successfully, but these errors were encountered: