-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cell.Ahainfo updates (SYN-4490, SYN-5194) #3008
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #3008 +/- ##
==========================================
- Coverage 97.27% 97.17% -0.11%
==========================================
Files 222 222
Lines 44035 44049 +14
==========================================
- Hits 42835 42804 -31
- Misses 1200 1245 +45
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 11 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
Remove the Cell.ahaclient Telepath client from being cached in the synapse.lib.aha_clients dictionary. This allows the Cell Aha client to operate independently of a (potentially) globally cached client. This simplifies unit testing with multiple cells communicating with a single Aha service, as the client is now properly fini'd upon teardown of the cell. Since the AhaApi class maintains state for the service registration, this also means a user interacting with the global object directly cannot not affect the state of the service registration for a Cell.
Change the cell.ahaino from being a static constant to being generated on demand by Cell.getAhaInfo(). This allows the cell to report the correct ready status to the Aha service, instead of a potentailly invalid static value. The previous behavior presented as having a incorrect ready status upon the Aha service restarting & service mirrors reporting the incorrect status.
When the cell mirror loop exits, it now reports its ready status to the Aha service. This allows a service to mark itself as "not ready" since exiting that loop may mean it is no longer in the realtime change window.
Fix a bug in
nexus._tellAhaReady(self, status)
which passed in a static value ( True ) to the Aha service instead of the thestatus
value being passed in.