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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Liquibase connecting to non primary replica #302

Open
Tylorjg opened this issue May 1, 2024 · 0 comments
Open

Liquibase connecting to non primary replica #302

Tylorjg opened this issue May 1, 2024 · 0 comments
Assignees

Comments

@Tylorjg
Copy link
Contributor

Tylorjg commented May 1, 2024

Community Note

  • Please vote on this issue by adding a 馃憤 reaction
    to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do
    not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Debug Output

N/A

Panic Output

N/A

Steps to Reproduce

  1. Use Liquibase v4.27.0.
  2. Have a dataset set to Multi-region EU.
  3. Have a dataset replica set up in the US.
  4. Do not specify the Location in the URL
  5. Run a Liquibase command

Expected Behavior

The expectation is that it would connect to the EU location without needing to specify it in the URL.

Actual Behavior

Liquibase is connecting to the US region even though is it the secondary replica which is read-only.

{
  "code": 400,
  "errors": [
    {
      "domain": "global",
      "message": "The dataset replica of the cross region dataset '<host>:<dataset>' in region 'US' is read-only because it's not the primary replica.",
      "reason": "invalid"
    }
  ],
  "message": "The dataset replica of the cross region dataset '<host>:<dataset>' in region 'US' is read-only because it's not the primary replica.",
  "status": "INVALID_ARGUMENT"
}

References

  • #0000
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

No branches or pull requests

2 participants