Actions
Bug #7733
closedmentat-storage may break during shutdown
Start date:
05/02/2024
Due date:
% Done:
0%
Estimated time:
To be discussed:
No
Description
Found (and forgotten) during server upgrade - when shutting down, storage lost (or reused after remove) a savepoint.
2024-03-11 10:11:32,577 mentat-storage.py [1499] INFO: Component 'storage': Committing all pending messages and switching to immediate commit mode. 2024-03-11 10:11:32,577 mentat-storage.py [1499] ERROR: Exception <class 'mentat.services.eventstorage.EventStorageException'>: Savepoint does not exist in transaction. 2024-03-11 10:11:32,581 mentat-storage.py [1499] ERROR: File "/var/mentat/venv/lib/python3.11/site-packages/pyzenkit/zendaemon.py", line 1209, in _sub_stage_process self._event_loop() File "/var/mentat/venv/lib/python3.11/site-packages/pyzenkit/zendaemon.py", line 1188, in _event_loop (flag, args) = handler(self, args) ^^^^^^^^^^^^^^^^^^^ File "/var/mentat/venv/lib/python3.11/site-packages/mentat/daemon/component/storage.py", line 238, in cbk_event_stop self._commit_pending() File "/var/mentat/venv/lib/python3.11/site-packages/mentat/daemon/component/storage.py", line 323, in _commit_pending self.event_service.commit_bulk() File "/var/mentat/venv/lib/python3.11/site-packages/mentat/services/eventstorage.py", line 1010, in wrapped_f return func(other_self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/mentat/venv/lib/python3.11/site-packages/mentat/services/eventstorage.py", line 1097, in commit_bulk self.savepoint_release() File "/var/mentat/venv/lib/python3.11/site-packages/mentat/services/eventstorage.py", line 1010, in wrapped_f return func(other_self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/mentat/venv/lib/python3.11/site-packages/mentat/services/eventstorage.py", line 1131, in savepoint_release raise EventStorageException("Savepoint does not exist in transaction.")
Actions