open-consul/agent/consul/stream
Matt Keeler 2a4ca71d3f
Move to using a shared EventPublisher (#12673)
Previously we had 1 EventPublisher per state.Store. When a state store was closed/abandoned such as during a consul snapshot restore, this had the behavior of force closing subscriptions for that topic and evicting event snapshots from the cache.

The intention of this commit is to keep all that behavior. To that end, the shared EventPublisher now supports the ability to refresh a topic. That will perform the force close + eviction. The FSM upon abandoning the previous state.Store will call RefreshTopic for all the topics with events generated by the state.Store.
2022-04-12 09:47:42 -04:00
..
event.go WatchRoots gRPC endpoint (#12678) 2022-04-05 15:26:14 +01:00
event_buffer.go stream: remove bufferItem.NextLink 2021-06-07 17:04:46 -04:00
event_buffer_test.go stream: remove bufferItem.NextLink 2021-06-07 17:04:46 -04:00
event_publisher.go Move to using a shared EventPublisher (#12673) 2022-04-12 09:47:42 -04:00
event_publisher_test.go Move to using a shared EventPublisher (#12673) 2022-04-12 09:47:42 -04:00
event_snapshot.go stream: remove bufferItem.NextLink 2021-06-07 17:04:46 -04:00
event_snapshot_test.go stream: remove bufferItem.NextLink 2021-06-07 17:04:46 -04:00
event_test.go streaming: split event buffer by key (#12080) 2022-01-28 12:27:00 +00:00
noop.go Move to using a shared EventPublisher (#12673) 2022-04-12 09:47:42 -04:00
subscription.go WatchRoots gRPC endpoint (#12678) 2022-04-05 15:26:14 +01:00
subscription_test.go WatchRoots gRPC endpoint (#12678) 2022-04-05 15:26:14 +01:00