-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Sync response for device_lists
is not immediate when running with workers
#11726
Comments
Hi @hyossing, can you clarify what you mean by "logout"? I'm guessing you've got element-web opened in two tabs in the same browser, and you close one tab while leaving the other open? |
Hello, @DMRobertson
And, I'm sorry about the Some configuration is wrong. It would not work.
I updated some configuration. Thanks you. |
Thanks @hyossing. One quick point of clarification, to make sure I understand the problem:
In master-worker mode, do you see an entry in |
Dear @DMRobertson It appears eventually in a later incremental sync as you said. I found one more strange behavior. The sync response comes right after logout if there is a room. But, If there is no room(leave and forget the test room), then the sync response comes later. Thanks you. |
This is to be expected when we're running in worker mode. (There are delays as information propagates from one worker to another). We Is this causing a particular problem for your use case? |
It is a problem for me. There is a particular behavior of our own client when device list changes. We expected the client will receive the same event right after logout in worker mode.
Currently, we are considering to change our policy for the changed-device-list.
|
Sorry for the delay in getting back to you. On reflection, I think I may have understood your problem. It sound a bit like #11457: something happens that clients should be told about, but we don't send a Is the problem reproducible every time, or does it only happen sometimes? |
device_lists
is not immediate when running with workers
@DMRobertson The problem reproducible every time for the no room and worker case as I explained above. In my opinion, the particular behavior is a trivial issue. We can handle by changing our policy a little bit. BR |
It sounds like this is expected behaviour and the reporter has found a workaround. Closing. |
Description
Hello,
Synapse does not create sync response for
device_lists
when logout in master and worker mode.In a single synapse mode, sync response comes for 'device_lists' when logout.
Steps to reproduce
Set Master and Worker environment
attached zip file is my test environment.
synapse-worker-deployment.zip
login two devices with same id using
element
client.Log
Log For Master & Worker
log_master.txt
Master sends replication data to worker.
log_worker.txt
Worker receives replication data from master. But, nothing happened.
Log For Single Process
log_single_process.txt
For the single process case, sync response is created for device list right after logout.
The text was updated successfully, but these errors were encountered: