open-nomad/drivers/shared/executor
Michael Schurter 38821954b7 plugins: squelch context Canceled error logs
As far as I can tell this is the most straightforward and resilient way
to skip error logging on context cancellation with grpc streams. You
cannot compare the error against context.Canceled directly as it is of
type `*status.statusError`. The next best solution I found was:

```go
resp, err := stream.Recv()
if code, ok := err.(interface{ Code() code.Code }); ok {
	if code.Code == code.Canceled {
		return
	}
}
```

However I think checking ctx.Err() directly makes the code much easier
to read and is resilient against grpc API changes.
2019-02-21 15:32:18 -08:00
..
proto Nomad 0.9.0-beta1 generated code 2019-01-30 10:49:44 -08:00
test-resources/busybox tests: busybox only depends on arch 2019-01-07 08:36:32 -05:00
client.go plugins: squelch context Canceled error logs 2019-02-21 15:32:18 -08:00
executor.go executor: Always close stdout/stderr fifos 2019-01-15 16:47:27 +01:00
executor_basic.go executor: fix broken non-linux build 2018-12-06 21:33:20 -05:00
executor_linux.go CVE-2019-5736: Update libcontainer depedencies (#5334) 2019-02-19 20:21:18 -05:00
executor_linux_test.go use drivers.FSIsolation 2019-01-08 09:11:47 -05:00
executor_plugin.go goimports 2019-01-22 15:44:31 -08:00
executor_test.go executor: fix bug and add tests for incorrect stats timestamp reporting 2019-01-28 21:57:45 -05:00
executor_universal_linux.go drivers: Move client/drivers/executor to drivers/shared/executor 2018-11-30 10:46:13 +01:00
executor_unix.go drivers: Move client/drivers/executor to drivers/shared/executor 2018-11-30 10:46:13 +01:00
executor_windows.go Plugins use parent loggers 2019-01-11 11:36:37 -08:00
legacy_executor_wrapper.go drivers/docker: handle shutdown of upgraded tasks correctly 2019-01-24 14:21:59 -05:00
pid_collector.go drivers: re-export ResourceUsage structs 2019-01-08 09:11:47 -05:00
pid_collector_test.go drivers: Move client/drivers/executor to drivers/shared/executor 2018-11-30 10:46:13 +01:00
plugins.go driver: add pre09 migration logic 2019-01-18 18:31:01 -05:00
resource_container_default.go drivers: Move client/drivers/executor to drivers/shared/executor 2018-11-30 10:46:13 +01:00
resource_container_linux.go drivers: Move client/drivers/executor to drivers/shared/executor 2018-11-30 10:46:13 +01:00
server.go drivers: plumb grpc client logger 2019-01-12 12:18:23 -05:00
utils.go driver: add pre09 migration logic 2019-01-18 18:31:01 -05:00
utils_unix.go executor: merge plugin shim with executor package 2018-12-06 21:13:45 -05:00
utils_windows.go executor: merge plugin shim with executor package 2018-12-06 21:13:45 -05:00