mattermost/server/channels/testlib
Jesse Hallam 6ef73af2cc
MM-65960: Avoid replica race lag when accessing TelemetryID (#34586)
* avoid replica race lag when remembering ServerID

In an HA environment, with a master and read replica, querying the server id from the store runs the risk of returning a value saved to master but not yet replicated. Avoid this by using the telemetry service value directly when available.

Fixes: MM-65960

* Add Get(ByName)WithContext

* explicitly use master for ServerId

* mock GetByNameWithContext

* more mocking

* more mocks
2025-12-11 17:34:36 -04:00
..
testdata MM-61407: Remove Bleve (#33430) 2025-07-31 09:35:29 +05:30
assertions.go [MM-63805] Don't throw a MFA warning for unauthenticated plugin requests (#30795) 2025-08-18 11:17:33 +02:00
cluster.go Handle error returned by GetClusterInfos() (#30919) 2025-05-12 13:37:58 -04:00
doc.go Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
hashers_dev.go Add fast test hasher to speed up CI tests (#34707) 2025-12-11 09:46:21 -04:00
hashers_production.go Add fast test hasher to speed up CI tests (#34707) 2025-12-11 09:46:21 -04:00
helper.go Add fast test hasher to speed up CI tests (#34707) 2025-12-11 09:46:21 -04:00
resources.go [MM-56792] Clarify large plugin upload error (#26271) 2024-09-09 14:00:25 +02:00
resources_test.go Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
store.go MM-65960: Avoid replica race lag when accessing TelemetryID (#34586) 2025-12-11 17:34:36 -04:00