Skip to content
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

[BUG] Duplicate resource error when two servers are connected to each other #1697

Closed
2 of 6 tasks
MariemBaccari opened this issue Oct 10, 2023 · 0 comments · Fixed by #1694
Closed
2 of 6 tasks

[BUG] Duplicate resource error when two servers are connected to each other #1697

MariemBaccari opened this issue Oct 10, 2023 · 0 comments · Fixed by #1694
Assignees
Labels
be1-go bug Something isn't working

Comments

@MariemBaccari
Copy link
Contributor

Description (Actual behavior)

When two Go backends are connected to each other (double connection), the client receives a "duplicate resource" when creating a meeting or a roll call.

Expected behavior

The client should be able to create the event.

How to reproduce

  1. Create two server configs where both are on each other's list of servers
  2. Run the servers and create a lao
  3. Try to create a meeting
  4. Notice that you will get a duplicate resource error (although the event is created)
Front-ends:
  • Fe1-Web (please include browser's names & version)
  • Fe2-Android (please specify if phone or emulation, and Android version)
  • Not applicable
Back-ends:
  • Be1-Go
  • Be2-Scala
  • Not applicable

Workaround

You can simply create one direction per pair of servers instead of having both servers in each other's list of "other-servers" in the config.

Possible root cause

On the Go backend, there is no mechanism for dropping a connection when a peer that's already connected tries to connect again which leads to "double connections". After some investigating, I found out that the server adds the same peer twice in the greet lao message which leads the client to create two connections for the same server. The client then sends the same message twice to the same server. One of them is processed properly and the other one is rejected so it sends a duplicate resource error back to the client.

@MariemBaccari MariemBaccari added bug Something isn't working be1-go labels Oct 10, 2023
@MariemBaccari MariemBaccari self-assigned this Oct 10, 2023
@MariemBaccari MariemBaccari linked a pull request Oct 10, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
be1-go bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant