From 5fde0b0f5c05ccd9394956834f1a4bc1a1ce3cae Mon Sep 17 00:00:00 2001 From: Preetha Appan Date: Tue, 8 Jan 2019 14:30:56 -0600 Subject: [PATCH] Revert code that made an alloc update when restore fails Restore currently shuts down the client so the alloc update cant always make it to the server --- client/client.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/client/client.go b/client/client.go index e5d582fec..9c0706ce1 100644 --- a/client/client.go +++ b/client/client.go @@ -967,9 +967,6 @@ func (c *Client) restoreState() error { if err := ar.Restore(); err != nil { c.logger.Error("error restoring alloc", "error", err, "alloc_id", alloc.ID) mErr.Errors = append(mErr.Errors, err) - // Mark alloc as failed so server can handle this - failed := makeFailedAlloc(alloc, err) - c.allocUpdates <- failed //TODO Cleanup allocrunner continue }