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
I am currently facing a stange issue with my data.
I have a list of objects in my storage, each of them has a LocalDateTime field. I have multiple timers that can edit these objects and also the LocalDateTime field. It can also happen that 2 timers run at the same time and want to edit the same object. I have solved the concurrency issue by using read/write locks in my application.
Now I had the issue that the storage is throwing an StorageExceptionConsistency "No entity found for objectId X" when it tries to load this LocalDateTime field (I know that the last thing that updated this field was my timer).
I dont really understand how this exception can occur here since there was no other exception when storing the object and it has not happened in the last 6 months.
Furthermore is there a way to tell during runtime that such an error occured? If this happens in production I will only know the data is corrupted once I restart.
So far I have not found a way to restore my data - is there any way to do so?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am currently facing a stange issue with my data.
I have a list of objects in my storage, each of them has a LocalDateTime field. I have multiple timers that can edit these objects and also the LocalDateTime field. It can also happen that 2 timers run at the same time and want to edit the same object. I have solved the concurrency issue by using read/write locks in my application.
Now I had the issue that the storage is throwing an StorageExceptionConsistency "No entity found for objectId X" when it tries to load this LocalDateTime field (I know that the last thing that updated this field was my timer).
I dont really understand how this exception can occur here since there was no other exception when storing the object and it has not happened in the last 6 months.
Furthermore is there a way to tell during runtime that such an error occured? If this happens in production I will only know the data is corrupted once I restart.
So far I have not found a way to restore my data - is there any way to do so?
Beta Was this translation helpful? Give feedback.
All reactions