consul/agent/consul/stream
Derek Menteer 9f7626d501
Ensure all topics are refreshed on FSM restore and add supervisor loop to v1 controller subscriptions (#20642)
Ensure all topics are refreshed on FSM restore and add supervisor loop to v1 controller subscriptions

This PR fixes two issues:

1. Not all streams were force closed whenever a snapshot restore happened. This means that anything consuming data from the stream (controllers, queries, etc) were unaware that the data they have is potentially stale / invalid. This first part ensures that all topics are purged.

2. The v1 controllers did not properly handle stream errors (which are likely to appear much more often due to 1 above) and so it introduces a supervisor thread to restart the watches when these errors occur.
2024-02-14 14:17:55 -06:00
..
event.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
event_buffer.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
event_buffer_test.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
event_publisher.go Ensure all topics are refreshed on FSM restore and add supervisor loop to v1 controller subscriptions (#20642) 2024-02-14 14:17:55 -06:00
event_publisher_test.go Trigger the V1 Compat exported-services Controller when V1 Config Entries are Updated (#20456) 2024-02-02 15:30:04 -05:00
event_snapshot.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
event_snapshot_test.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
event_test.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
noop.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
string_types.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
subscription.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
subscription_test.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00