yorkie-team / yorkie

Yorkie is a document store for collaborative applications.
https://yorkie.dev
Apache License 2.0
748 stars 134 forks source link

Cannot find node of CRDTTreePos #880

Closed hackerwins closed 1 month ago

hackerwins commented 1 month ago

What happened:

During prolonged editing of the Tree, intermittently encountered the Cannot find node of CRDTTreePos error. This error leads to script errors and might make users believe that collaborative editing has been interrupted.

Upon investigation, it appears that this issue arises due to a problem in the encoding logic when saving and reloading Snapshots.

What you expected to happen:

No "Cannot Find Node" error should be encountered during editing the Tree.

How to reproduce it (as minimally and precisely as possible):

  1. Engage in prolonged editing of the Tree.
  2. Observe the intermittent occurrence of the "Cannot Find Node" error.

Anything else we need to know?:

N/A

Environment:

hackerwins commented 1 month ago