Ensure recorder commit can retry after encountering invalid data (#41426)
This commit is contained in:
1 parent
b5e57ed4fd
commit
4ab02cb9bc
2 files changed
+42
-1
No files matched your search
@@ -506,7 +506,8 @@ class Recorder(threading.Thread):
|
||||
for dbstate in self._pending_expunge:
|
||||
# Expunge the state so its not expired
|
||||
# until we use it later for dbstate.old_state
|
||||
self.event_session.expunge(dbstate)
|
||||
if dbstate in self.event_session:
|
||||
self.event_session.expunge(dbstate)
|
||||
self._pending_expunge = []
|
||||
self.event_session.commit()
|
||||
except Exception as err:
|
||||
|
||||
Reference in new issue
Block a user