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

Update database relation data of replica cluster #395

Open
paulomach opened this issue Mar 20, 2024 · 1 comment
Open

Update database relation data of replica cluster #395

paulomach opened this issue Mar 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@paulomach
Copy link
Contributor

Steps to reproduce

  1. Deploy 2 clusters A and B
  2. Add a async relation between A and B, being A primary and B replica clusters
  3. Deploy mysql-router-k8s and test app
  4. relate app<->router<->A
  5. Promote B to primary
  6. Remove relation app<->router

Expected behavior

Router is able to remove metadata from cluster

Actual behavior

Router fails due to relation data pointing to cluster A primary service, now the primary from the replica cluster, i.e. read-only mode.

Additional context

Issue present on unreleased code on dpe-2959-async-repl branch

@paulomach paulomach added the bug Something isn't working label Mar 20, 2024
Copy link
Contributor

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