consul/agent/consul/fsm
Matt Keeler 8bad5105b7
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
..
commands_oss.go ca: use the real FSM operation in tests 2021-12-08 17:29:44 -05:00
commands_oss_test.go bulk rewrite using this script 2022-01-20 10:46:23 -06:00
fsm.go Move to using a shared EventPublisher (#12673) 2022-04-12 09:47:42 -04:00
fsm_test.go Allow users to configure either unstructured or JSON logging (#7130) 2020-01-28 17:50:41 -06:00
snapshot.go Vendor in rpc mono repo for net/rpc fork, go-msgpack, msgpackrpc. (#12311) 2022-02-14 09:45:45 -08:00
snapshot_oss.go Vendor in rpc mono repo for net/rpc fork, go-msgpack, msgpackrpc. (#12311) 2022-02-14 09:45:45 -08:00
snapshot_oss_test.go Fixup acl.EnterpriseMeta 2022-04-05 15:11:49 -07:00