Open jzhang20133 opened 7 months ago
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:
When using pycrdt-websocket 0.13.1, file access in jupyterlab can hang.
https://github.com/jupyter-server/pycrdt-websocket/assets/4554746/f044cfc9-eba3-4e7a-a3a8-efb10946beee
Error logs shows that when
ystore.read()
method is called before ystore db initialization finishes, it is waiting on an old Event created in__init__
method andystore.start()
method has assigned a new Event. And the oldEvent()
is never set hence file access is blocked.Error Logs:
We can see that
read data, self.db_initializer=<anyio._backends._asyncio.Event object at 0x7ff5a83355a0>
is waiting on an old Event which is never set. Since after start method is called, self.db_initialized is replaced with a new Event.