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

Error document not attached occurs when Detach and Sync race #856

Open
chacha912 opened this issue Jul 3, 2024 · 3 comments
Open

Error document not attached occurs when Detach and Sync race #856

chacha912 opened this issue Jul 3, 2024 · 3 comments
Assignees
Labels
bug 🐞 Something isn't working

Comments

@chacha912
Copy link
Contributor

What happened:

Error document not attached occurs when going backwards in codepair.
This error occurs due to a race condition between Detach and Sync requests.
Since a sync loop is performed independently of a detach, the client may send a sync request while the document is still considered attached before receiving a response to the detach request. This causes an error on the server because it has already processed the detach request and considers the document detached.

image

What you expected to happen:

The Detach and Sync requests should not race to avoid the document not attached error.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • Operating system:
  • Browser and version:
  • Yorkie version (use yorkie version):
  • Yorkie JS SDK version:
@jeonghye-choi
Copy link

I'm interested in this issue. Can I give it a shot?

@blurfx
Copy link
Member

blurfx commented Jul 19, 2024

Sure :)

@sejongk
Copy link
Contributor

sejongk commented Sep 20, 2024

@jeonghye-choi I've unassigned you from this issue to allow others to contribute. If you're still interested in it, please let me know.

@gwbaik9717 gwbaik9717 self-assigned this Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
Status: In progress
Development

No branches or pull requests

6 participants