-
Notifications
You must be signed in to change notification settings - Fork 95
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
Delayed synchronization upon frontend server restart #48
Comments
|
This is related to the issues below. I think we need to update gRPC-Web to 1.2.0. grpc/grpc-web#450 https://github.com/yorkie-team/yorkie-js-sdk/blob/master/src/core/client.ts#L419-L423 |
There was a problem that error events were missing in the previous version of grpc-web. It seems to have been fixed in 1.2.0, which was released a while ago. I think we should check it again. And grpc-web network error handling in 1.2.0 is described in the table in the issues below. So I think we can solve this problem like this:
https://github.com/yorkie-team/yorkie-js-sdk/blob/master/src/core/client.ts#L419-L423 |
Also, I found a bug in https://github.com/yorkie-team/yorkie/blob/master/yorkie/pubsub/pubsub.go Thanks. |
A couple comments on what I've tried on my local repo:
Results
|
What happened
While running the toy example (
docker-compose up
=>npm start
) I noticed that if I restart the frontend server, synchronization happens only after a client makes some local changes to the document. So for example if I make changes on a client, the changes are not reflected in any other clients until they create some events on their part (e.g., moving the cursor around, writing to the document et cetera)What you expected to happen: Seamless synchronization
How to reproduce it (as minimally and precisely as possible):
docker-compose up
indocker/
npm start
Ctrl + C
)npm start
Anything else we need to know?:
When I quit the frontend server, it does show an error:
Assertion failed: (0), function uv_close, file ../deps/uv/src/unix/core.c, line 178.
Then after restarting the server, it produces this error whenever I close a client browser tab:
[HPM] Error occurred while trying to proxy request /api.Yorkie/WatchDocuments from localhost:9000 to http://localhost:8080 (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors)
Environment:
yorkie version
): Yorkie: 0.0.10 (Commit: 165cdbf / Go: go1.14.3)The text was updated successfully, but these errors were encountered: