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

[Tech. Debt] CHAIN_UPDATE events does not clear the in-memory TransactionApi configuration on all CGW instances #2006

Open
hectorgomezv opened this issue Oct 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@hectorgomezv
Copy link
Member

Description

CHAIN_UPDATE events emitted by the Safe Config Service only target one CGW pod. This causes the receiving pod to clear the shared state (Redis), but given we also store some data (Transaction API configuration) in memory, those changes cannot be propagated to the rest of the running pods.

Reproduction steps

  1. More than 1 CGW pod is running.
  2. Each pod holds TransactionApiManager.transactionApiMap in memory, having a Record<string, TransactionApi> and each TransactionApi contains the Transaction Service URLs.
  3. The Transaction Service URL for a given chain in the Config Service is changed.
  4. A CHAIN_UPDATE event is received by only one of the CGW pods.
  5. Only one of the CGW pods clears the in-memory data, so the URL is only updated for 1 pod.

Expected behavior

All the pods contain an accurate state reflecting the new configuration.

Additional information

No response

@hectorgomezv hectorgomezv added the bug Something isn't working label Oct 10, 2024
@hectorgomezv hectorgomezv changed the title CHAIN_UPDATE events does not clear the in-memory TransactionApi configuration on all CGW instances [tech. debt] CHAIN_UPDATE events does not clear the in-memory TransactionApi configuration on all CGW instances Oct 10, 2024
@hectorgomezv hectorgomezv changed the title [tech. debt] CHAIN_UPDATE events does not clear the in-memory TransactionApi configuration on all CGW instances [Tech. Debt] CHAIN_UPDATE events does not clear the in-memory TransactionApi configuration on all CGW instances Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant