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

Fix delayed synchronization #63

Merged
merged 2 commits into from
Aug 21, 2020
Merged

Conversation

semin-park
Copy link
Contributor

What does this PR do?

When envoy proxy goes down and later comes back up, it used to be that the connection does not get automatically reestablished.

With this fix, JS clients retries to connect to the envoy proxy until it comes back up, and then applies all local changes automatically.

How should this be manually tested?

  1. Run normally (docker-compose up to turn on mongo, envoy and yorkie, and then npm start to start the webpack devServer)
  2. Shut down the envoy proxy (docker stop envoy)
  3. Make some local changes to the document
  4. Restart the envoy proxy (docker start envoy)
  5. Local changes of each JS clients should be applied automatically

Any background context you want to provide?

c.f. #48

What are the relevant tickets?

Fixes #48

Checklist

  • Added relevant tests
  • Didn't break anything

@semin-park semin-park force-pushed the 48-sync-delay branch 2 times, most recently from 9d80433 to 37fc85d Compare August 21, 2020 04:14
When envoy proxy goes down and later comes back up, it used to be
that the connection does not get automatically reestablished.
With this fix, JS client retries to connect to the envoy proxy
until it comes back up, and then applies all local changes
automatically.
Copy link
Member

@hackerwins hackerwins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hackerwins hackerwins merged commit 97feb41 into yorkie-team:master Aug 21, 2020
@hackerwins
Copy link
Member

@semin-park Thanks for your contribution.

@semin-park semin-park deleted the 48-sync-delay branch August 25, 2020 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Delayed synchronization upon frontend server restart
2 participants