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

.dump fails if the request is sent to replica #1519

Open
avinassh opened this issue Jul 1, 2024 · 1 comment
Open

.dump fails if the request is sent to replica #1519

avinassh opened this issue Jul 1, 2024 · 1 comment

Comments

@avinassh
Copy link
Member

avinassh commented Jul 1, 2024

Recently, a user tried to take an export, but the database panicked. The logs pointed to an unwrap here:

.with(namespace, |ns| {
ns.db.as_primary().unwrap().connection_maker()
})

As a workround, user was able to take the export by force connecting to primary and calling .dump

first reported in discord: https://discord.com/channels/933071162680958986/933071163184283651/1256427537328767009

@MarinPostma
Copy link
Collaborator

I think replicas should proxy the call to the primary

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