Skip to content
Snippets Groups Projects
Commit fd121c8e authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Fix assertion error on unclean master shutdown


Commit 66bd7445 added an assertion to ensure a finalized job has its
“end_timestamp” attribute set. Unfortunately it didn't cover a case when
the queue is recovering from an unclean master shutdown.

Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
(cherry picked from commit 45df0793)
parent e4a48c7b
No related branches found
No related tags found
No related merge requests found
......@@ -1289,6 +1289,7 @@ class JobQueue(object):
else:
job.MarkUnfinishedOps(constants.OP_STATUS_ERROR,
"Unclean master daemon shutdown")
job.Finalize()
self.UpdateJobUnlocked(job)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment