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

Remove skip storing MinSyncedTicket when the ticket is initial #655

Merged
merged 2 commits into from
Oct 27, 2023

Conversation

hackerwins
Copy link
Member

@hackerwins hackerwins commented Oct 27, 2023

What this PR does / why we need it:

Remove skip storing MinSyncedTicket when the ticket is initial

Previously, in order to enhance GC efficiency, when a client initially attaches a document that has any changes, the process of storing MinSyncedTicket was skipped. However, this approach is flawed because the server stores the ticket based on the checkpoint of requests for handling scenarios where the client's response may be lost.

So this commit removes the optimization for now.

This commit also revises the logs of the PushPull process to be more simple.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Additional documentation:


Checklist:

  • Added relevant tests or not required
  • Didn't break anything

To improve GC efficiency, when a client first attaches a document, if
there are no changes in the document, pushing MinSyncedTicket is skipped.
@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a000a29) 48.86% compared to head (46c0a65) 48.89%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #655      +/-   ##
==========================================
+ Coverage   48.86%   48.89%   +0.02%     
==========================================
  Files          69       69              
  Lines       10082    10076       -6     
==========================================
  Hits         4927     4927              
+ Misses       4635     4629       -6     
  Partials      520      520              
Files Coverage Δ
server/backend/database/memory/database.go 48.09% <ø> (+0.15%) ⬆️
server/backend/database/mongo/client.go 39.58% <ø> (+0.11%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hackerwins hackerwins merged commit 107498e into main Oct 27, 2023
2 checks passed
@hackerwins hackerwins deleted the remove-skip-min-sync-keys branch October 27, 2023 09:06
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.

1 participant