-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
Goals
For client apps to be able to recover from a sync termination that has happened in realm when they have unsynced data on their applications.
Expected Results
After the sync is recreated I expect that any unsynced changes on client devices are not lost.
Actual Results
Currently when this happens it renders the local realms corrupt and the data in not synced to atlas.
Steps to Reproduce
- open a realm on the client application
- go offline
- add some data to the local realm
- terminate the sync
- recreate sync
- go back online on the client device.
- Following error message is displayed in realm logs:
client file not found. The server has forgotten about the client-side file presented by the client. This is likely due to using a synchronized realm after terminating and re-enabling sync. Please wipe the file on the client to resume synchronization.
{ sessionIdent: 7, clientFileIdent: 8170 }(ProtocolErrorCode=208)
The data is therefore lost.
Version of Realm and Tooling
- Realm JS SDK Version: 10.1.2
- Node or React Native: ReactNative
- Client OS & Version: Macos
- Which debugger for React Native: Chrome