You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that Memgraph saves the current timestamp only in DiskStorage destructor, but if process gets killed with SIGKILL signal, for example, then destructor won't be called and the timestamp won't be saved.
Because of that, timestamp will start from 1 and old keys will be used, hence user will have to query the database until he gets to the timestamp he used before database was restarted.
To fix this, we should either save every commit timestamp after the transaction finishes, or we could add a flag that will save the timestamp after n commits.
DavIvek
changed the title
Wrong results using on-disk storage mode.
Durability issue with on-disk storage mode
Mar 11, 2024
An additional issue related to this one, the --data-recovery-on-startup flag doesn't do anything in on-disk storage mode. By default, Memgraph is treating it as always true. We should either handle the case where it is set to false (by deleting rocksdb data dirs) or we should write somewhere in docs, that if the user doesn't want to recover data on startup, he should delete rocksdb data dirs manually.
Memgraph version
2.15
Describe the bug
![Screenshot from 2024-03-08 14-39-00](https://private-user-images.githubusercontent.com/88043717/311274269-436115a9-c48c-4503-a8c7-d0db01f26211.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk2MzUyODgsIm5iZiI6MTcxOTYzNDk4OCwicGF0aCI6Ii84ODA0MzcxNy8zMTEyNzQyNjktNDM2MTE1YTktYzQ4Yy00NTAzLWE4YzctZDBkYjAxZjI2MjExLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI5VDA0MjMwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVjYzM2ODA2ZGNlYmE3NmFjZjUyMGNhOTczNDY3YWRkNDY1OTRhMjY4M2RlNGMyYTQzZjQ5YmUyYzU4MjJlNDAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ijkH99Eud-Mcvooduz1P2Nhd5lBphGczUtNFHXcbkWI)
Wrong results when while matching all nodes in database, using on-disk storage mode.
NOTE: This data existed in database before restart
The text was updated successfully, but these errors were encountered: