-
Notifications
You must be signed in to change notification settings - Fork 55
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
Device list doesn't change if remote server is down
is flaky
#1136
Comments
Well, I mean to make a PR for this but screwed up my git branch management locally. Let's see how this goes? |
Just noting that I had a failure on this test as well today (with several re-runs) |
I resorted to sticking debug statements into synapse. My understanding: on the first keys query,
All normal operation as far as I can see. On the second keys query,
Guessing there's a race between the cache invalidation and the second device keys call?? Commenting out the Notes:
|
Oh bleurgh, that's annoying. The other way we deal with this sort of thing is by using sytest/tests/10apidoc/33room-members.pl Lines 107 to 120 in 66cace3
So I think we can wrap the second call to fetch keys in that and it should work? |
Thanks @erikjohnston, that sounds like a good avenue of attack. For completeness, I wanted to demonstrate the race in the logs. Here's a version where I've made sytest Logs with extra sytest sleep
In particular, note that the stream_writer is told over replication about the device lists having changed:
So we get a correct cache hit:
Here's the version without the sleep. Without sleep
The stream_writer never gets the replication message (I'm assuming we kill the server before it has chance to arrive.) So we get an old (incorrect) cache hit:
|
Unfortunately I don't think
|
Device list doesn't change if remote server
is down is flakyDevice list doesn't change if remote server is down
is flaky
Also https://github.com/matrix-org/synapse/runs/3630907641, but I think that's running against a release branch in sytest that doesn't have the above PR (merged to sytest develop) |
https://github.com/matrix-org/synapse/runs/3570688017
I think this was just re-enabled?
The text was updated successfully, but these errors were encountered: