convergence-project icon indicating copy to clipboard operation
convergence-project copied to clipboard

Reconnect while model was deleted problem

Open thomaskahabka opened this issue 2 years ago • 0 comments

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 #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 avatar Mar 15 '22 11:03 thomaskahabka