Unverified Commit a28a67d2 authored by Nick Ethier's avatar Nick Ethier
Browse files

logmon:add static check for logmon exited hook

Showing with 2 additions and 1 deletion
+2 -1
......@@ -101,7 +101,7 @@ func (h *logmonHook) Prestart(ctx context.Context,
var reattachConfig *plugin.ReattachConfig
var err error
// If the task was restarted then the logmon process is still running and just
// If the task was restarted and the logmon process is still running logmon
// needs the start RPC called again to open the fifo
if !h.exited || h.logmonPluginClient == nil || h.logmonPluginClient.Exited() {
reattachConfig, err = reattachConfigFromHookData(req.PreviousState)
......
......@@ -19,6 +19,7 @@ import (
// Statically assert the logmon hook implements the expected interfaces
var _ interfaces.TaskPrestartHook = (*logmonHook)(nil)
var _ interfaces.TaskExitedHook = (*logmonHook)(nil)
var _ interfaces.TaskStopHook = (*logmonHook)(nil)
// TestTaskRunner_LogmonHook_LoadReattach unit tests loading logmon reattach
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment