open-nomad/drivers/java
Mahmood Ali 2588b3bc98 cleanup driver eventor goroutines
This fixes few cases where driver eventor goroutines are leaked during
normal operations, but especially so in tests.

This change makes few modifications:

First, it switches drivers to use `Context`s to manage shutdown events.
Previously, it relied on callers invoking `.Shutdown()` function that is
specific to internal drivers only and require casting.  Using `Contexts`
provide a consistent idiomatic way to manage lifecycle for both internal
and external drivers.

Also, I discovered few places where we don't clean up a temporary driver
instance in the plugin catalog code, where we dispense a driver to
inspect and validate the schema config without properly cleaning it up.
2020-05-26 11:04:04 -04:00
..
test-resources add java driver tests 2018-11-06 12:41:39 -08:00
driver.go cleanup driver eventor goroutines 2020-05-26 11:04:04 -04:00
driver_pre09.go drivers: always initialize taskHandle.logger 2019-11-22 10:44:59 -05:00
driver_test.go cleanup driver eventor goroutines 2020-05-26 11:04:04 -04:00
handle.go goimports 2019-01-22 15:44:31 -08:00
state.go Implement java driver 2018-11-06 12:41:39 -08:00
utils.go drivers/java: restore 0.8.7 java version detection (#5317) 2019-02-12 13:41:26 -05:00
utils_test.go drivers/java: restore 0.8.7 java version detection (#5317) 2019-02-12 13:41:26 -05:00