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

Reconnect while model was deleted problem #268

Open
thomaskahabka opened this issue Mar 15, 2022 · 0 comments
Open

Reconnect while model was deleted problem #268

thomaskahabka opened this issue Mar 15, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@thomaskahabka
Copy link

Versions

  • Convergence Version: 1.0.0.rc12
  • OS: any
  • Browser: Chrome

Describe the Bug
The following sequence leads to the problem for code running in a browser:

  • connect to a convergence domain D
  • open model M
  • disturb network (i.e. disconnect browser from network)
  • meanwhile a backend job deletes model M (like a garbage collector)
  • reconnect browser to network
  • convergence frontend in browser reconnects to domain D successfully (thank you for the fix in reconnect() doesn't work #256 )
  • model M pretends to be functioning perfectly and shows to be online, no "DELETED" event is submitted, any operation is working without error
  • except that the model doesn't exist in the backend any more and any change from the frontend is lost !

Step To Reproduce
This needs some infrastructure to simulate - please get in touch if you need help reproducing it - I'm happy to help you.

Expected Behavior
model.on(RealTimeModel.Events.DELETED, (event => { alert("The model was deleted by the backend."); // do some recovery stuff }));
should be called. Or ANY other error should be thrown, so that the situation can be handled gracefully.

@thomaskahabka thomaskahabka added the bug Something isn't working label Mar 15, 2022
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
None yet
Development

No branches or pull requests

1 participant