element-hq / element-hq/synapse

Race condition when sending requests to join and set `displayname` at the same time

Open
#10,476 0 comments 0 reactions 0 assignees View on GitHub
S-Tolerable T-Defect
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#10476](https://github.com/matrix-org/synapse/issues/10476).

---

### Description

There is a race condition in the join and set displayname API requests to Synapse, https://github.com/vector-im/element-web/issues/18222

Comments from @tulir: https://matrix.to/#/!FDTDciUzgMWGJcYnwn:maunium.net/$n3crWcHOeSuprCGVp3tXMYHhNg8FZtcAQlDOxXxA5BI?via=maunium.net&via=matrix.org&via=tchncs.de

![](https://user-images.githubusercontent.com/31655082/126981334-1a2696ab-331e-4831-b528-96cb02b552e7.png)

Let me know if any logs can help and I'll try fishing them out

### Steps to reproduce

- not sure, perhaps with a 'big' room (60 people) bridged from Telegram

### Version information

- **Homeserver**: matrix.chagai.website

If not matrix.org:

- **Version**:
"server_version":"1.38.1","python_version":"3.8.11"
- **Install method**:
docker/ansible

- **Platform**:
docker/ansible on centos7

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.