mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
39ebd81dc5
A distributed query campaign can be "orphaned" (left in the QueryRunning state) if the Kolide server restarts while it is running, or other weirdness occurs. When this happens, no subscribers are waiting to read results written by osqueryd agents, but the agents continue to receive the query. Previously, this would cause us to error on ingestion. The new behavior will instead set the campaign to completed when it detects that it is orphaned. This should prevent sending queries for which there is no subscriber. - New NoSubscriber error interface in pubsub - Detect NoSubscriber errors and close campaigns - Tests on pubsub and service methods Fixes #695 |
||
---|---|---|
.. | ||
doc.go | ||
inmem_query_results.go | ||
query_results_test.go | ||
redis_query_results.go |