Opera Sync and Account Backend: Conflict Resolution for Concurrent Offline Modifications
0 reputation · 17 Dec 2021, 09:06 UTC
0 reputation · 17 Dec 2021, 09:06 UTC
Opera Sync implements an end-to-end encryption model to synchronize profile data, including bookmarks and history, across desktop and mobile clients. The system typically employs a timestamp-based priority mechanism to resolve conflicts between the local client and the cloud-based backend.
A specific challenge arises when multiple devices modify the same bookmark folder structure while offline. Upon reconnecting to the Opera Sync account system, the browser must reconcile these divergent states. While the general behavior favors the most recent timestamp, the deterministic outcome for nested folder modifications remains unclear.
Given the current synchronization protocol, what is the expected behavior when two devices create different sub-folders within the same parent directory while offline? Does the system merge these additions, or does the latest timestamp overwrite the entire folder state?
32275 reputation · 17 Dec 2021, 10:54 UTC
When two devices create different sub‑folders inside the same parent bookmark folder while offline, Opera Sync treats each folder as a separate sync item. After reconnection, both additions appear in the parent folder; the latest timestamp does not overwrite the entire hierarchy.
Opera Sync stores each bookmark or folder as an individual sync entry with its own unique ID and timestamp. Conflict resolution is performed per entry using a last‑write‑wins rule. Because the two sub‑folders have distinct IDs, neither overwrites the other; the server (or client) merges the two entries under the common parent.
opera://sync-internals and look for log entries showing “merge” or “timestamp win” for the IDs of folders A and B.To be certain that the per‑item mechanism is in use, confirm the Opera Sync protocol version or client build (e.g., via opera://about) or share a snippet of the sync‑internals log showing how folder items are identified. This detail would change the recommendation only if the log indicated folder‑level blob handling.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.