Skip to content
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

feat: Use at_lookup's CacheableSecondaryAddressFinder #1528

Merged
merged 5 commits into from
Sep 3, 2023

Conversation

gkc
Copy link
Contributor

@gkc gkc commented Aug 29, 2023

Note: This PR primarily addresses one aspect of atsign-foundation/at_libraries#368 - i.e. make at_server use the same thing as at_client which means using at_lookup's CacheableSecondaryAddressFinder. The second aspect - add retry capability to CacheableSecondaryAddressFinder - is addressed in at_libraries PR 401 which has been merged and published as at_lookup version 3.0.40 - this PR also includes a change to use at_lookup version 3.0.40

- What I did
feat: Use at_lookup's CacheableSecondaryAddressFinder

- How I did it

  • Make a single CacheableSecondaryAddressFinder available through the AtSecondaryServerImpl singleton
  • Ensure this is used everywhere instead of the deprecated AtLookupImpl.findSecondary method. Allow it to be injected where necessary for test purposes
  • Refactor - remove the singleton nature of OutboundClientManager, and instead create it as an instance variable in AtSecondaryServerImpl
  • Make AtSecondaryConfig.rootServerUrl and .rootServerPort return String and int respectively rather than String? and int?

- How to verify it
Tests should pass

gkc added 4 commits August 29, 2023 15:11
- Make a single CacheableSecondaryAddressFinder available through the AtSecondaryServerImpl singleton
- Ensure this is used everywhere else it needs to be used. Allow it to be injected where necessary
- Refactor - remove the singleton nature of OutboundClientManager, and instead create it as a final instance variable in AtSecondaryServerImpl
- Make AtSecondaryConfig.rootServerUrl and .rootServerPort return String and int respectively rather than String? and int?
@gkc gkc marked this pull request as ready for review September 3, 2023 17:56
@gkc gkc merged commit 37783a8 into trunk Sep 3, 2023
17 checks passed
@gkc gkc deleted the fix/root-lookup-resilience branch September 3, 2023 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants