Daemon worker started through the started_daemon_client
fixture can except leaving it incapable of running other processes
#5687
Labels
priority/critical-blocking
must be resolved before next release
topic/daemon
topic/engine
topic/testing
type/bug
Milestone
The recently added fixture
started_daemon_client
makes it easier to run unit tests that require a running daemon. Since it was added, tests that rely on it seem to randomly except. It seems the cause is that in some cases, the daemon worker hits an exception when trying to finalize a process it was running. Specifically, at the end of a process' lifetime, theon_terminated
method is called, which for aProcess
means to delete the process checkpoint, which is stored as an attribute. This triggers an exception:It seems that the node whose checkpoint should be deleted no longer exists, or maybe just the attribute itself no longer exists. It is not quite clear why this is happening, but maybe other test fixtures are cleaning the database (and so removing the node in question) before the daemon worker got the chance to delete the checkpoint.
The text was updated successfully, but these errors were encountered: