DB Sync: journal page created on two devices, top-level blocks silently emptied on merge
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 8/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- clojure, ios, linux, macos, sqlite
- Área
- data, databases, distributed-systems, mobile-dev
Línea de trabajo
The report is a sync merge bug in the E2EE graph with no reproduction, so there is no single file to start from. Read the sync and merge path that handles top-level block ordering and created-at on reconnect, and check related issues #779, #780 and #781 for the stalled-sync context. Done would mean a reproducible test where concurrent edits to one journal page keep both sides or raise a conflict, instead of emptying blocks.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Search first
- I searched and no similar issues were found
What Happened?
E2EE graph synced between Desktop (macOS), iOS and a read-only CLI client (Linux).
- Overnight, during a macOS maintenance wake with nobody at the computer, Desktop created today's journal page together with an empty first block (same millisecond). logseq/logseq#11913 was meant to avoid creating that block before the user edits it.
- In the morning, Desktop edits on that page (top-level blocks with children) did not reach the server for ~3 h, with no visible error (see #780).
- On iOS, I pasted an image into the first, empty block of that page.
- I restarted Desktop to force sync.
Result, now the same on all devices:
- all top-level blocks are empty, including a task and a parent block that had text; nested blocks kept their text;
- Desktop's blocks kept their UUIDs but got a new
:block/created-at(merge time), and the top-level ones were moved before the first block (Zy,Zz... <a0); - the task title was emptied without bumping
:block/updated-at; - the image ended up in Desktop's empty first block from step 1.
No conflict prompt, nothing in Recycle, graph validate finds no errors. iOS and Desktop showed different versions for a while, then converged.
Reproduce the Bug
Not reproduced yet. Likely path: two devices share today's journal; device A edits it while its sync is silently stalled (#779, #780); device B edits the first block; device A reconnects.
Expected Behavior
Keep both sides' changes, or show a conflict. Never empty blocks silently.
Screenshots
No response
Files
No response
Browser, Desktop or Mobile Platform Information
Desktop 2.0.2 (macOS arm64), iOS 2.0.2 (54) TestFlight, CLI rev 533ac43 (Linux). E2EE on.
Additional Context
Related: #781 (data loss with pending changes on 2 devices), logseq/logseq#13036 (journal children lost on rebase).
Are you willing to submit a PR? If you know how to fix the bug.
- I'm willing to submit a PR (Thank you!)
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 29
- Forks
- 2
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de logseq/db-test
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Potential Dataloss: Deleting an entry from the property page's node table has no confirmation dialogPosiblemente ocupada @tiensonqin la tomó hace 59 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Disabling Flashcards in Settings does not disable Flashcard shortcuts or tagsPosiblemente ocupada @tiensonqin la tomó hace 60 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Todos los issues de logseq/db-test
Issues similares
-
fix energy term "van_der_walls"Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
Becksteinlab/imdclient#161 ·
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 2 días
-
geodata good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
dgunning/edgartools#2019 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 Medio día Aptitud para principiantes 72/100
alltheplaces/alltheplaces#20745 ·
Los mantenedores suelen responder en 1 día