OS Family: Linux System: KDE Neon (Ubuntu 18.04 LTS 64-bit) Joplin: 1.0.193 appimage
I’ve noticed a pretty annoying issue that I tried to triage when on
Joplin 1.0.179. It seemingly vanished in the meantime, I also partially attributed this to Issues I had with the Nextcloud Desktop Client.
As it stands today, the Nextcloud Client is working really well, Joplin got updated and all seemed well. But a while ago today I noticed that the issue is still there.
When I write my notes, sometimes the note gets reverted to its previous state, I’m 95% certain that this happens during sync. That’s because I saw this once happen: I was writing, Joplin started to sync and my changes vanished. But an identical scenario happened many times and there was no data loss.
Right now I’m typing manually my notes that I’ve written on paper, so I have verbatim what was typed. I wanted to add some more text to a specific place and the last added piece was missing. I tried searching with
CTRL+g for the word
travel that was in the previous sentence. And no dice, the sentence is nowhere to be found. So either I’m using the wrong tool to search, or the sentence disappeared.
I tried to time something a while ago: to edit a note exactly when the sync is running, but I couldn’t recreate this situation. Maybe it gets triggered by something else and sync is simply happening nearby. I’m also not sure if there was any sync when I was typing today, I may have refocused to a different note or simply looked away.
I’ve secured the logs for today and here’s the timestamp of the note in question:
There are no errors or warnings in the logs, but I can go through them again once I know what to look for.
So… how does exactly Joplin save and sync notes? Could there be an edge case where operations collide or race against each other in such a way that the note gets restored to a previous state?