You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a document is explicitly detached, the presence is removed from the presences through PresenceChange{type: 'clear'}. This helps keep snapshot presence lightweight. However, when the client does not explicitly invoke detach, there is an issue that the presence not to be cleared.
Currently, during housekeeping, the document state is updated using clientInfo.DetachDocument(). It is also necessary to clear the presence at this point.
Description:
When a document is explicitly detached, the presence is removed from the presences through
PresenceChange{type: 'clear'}
. This helps keep snapshot presence lightweight. However, when the client does not explicitly invoke detach, there is an issue that the presence not to be cleared.Currently, during housekeeping, the document state is updated using
clientInfo.DetachDocument()
. It is also necessary to clear the presence at this point.yorkie/server/backend/housekeeping/housekeeping.go
Lines 171 to 177 in 65c8164
yorkie/server/clients/clients.go
Lines 72 to 80 in 65c8164
Why:
To prevent continuous growth of the presence snapshot.
The text was updated successfully, but these errors were encountered: