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

[BUG] Misleading error message when downloading SCB for name-colliding databases #32

Closed
hemidactylus opened this issue Jan 9, 2023 · 1 comment
Assignees
Labels
bug Something isn't working ready_for_release
Milestone

Comments

@hemidactylus
Copy link
Collaborator

If one has more than one DB with the same name, running

astra db download-scb -f aaa.zip $DB

gives the error for the "Create database" operation, namely [ERROR] ALREADY_EXIST: Cannot create another Database with name 'workshops' Use flag --if-not-exist to connect to the existing database.

This message should be more accurate (and perhaps hint at the fact that you can specify a database by ID).

@clun clun added the bug Something isn't working label Feb 8, 2023
@clun clun self-assigned this Feb 8, 2023
@clun
Copy link
Collaborator

clun commented Feb 8, 2023

Exception DatabaseNameNonUnique and DatabasenameAlreadyExist have been split to differentiate the situations.

astra db download-scb demo

Will get you a

[ERROR] CONFLICT: Multiple databases with same name 'demo' detected. 
Please fallback to database id to resolve the conflict

astra db create demo

Will get you a

[ERROR] ALREADY_EXIST: A database with name 'demo' already exists in the organization. 
To prevent conflicts CLI will not create another one, please change name

@clun clun modified the milestones: 0.3, 0.2.1 Feb 8, 2023
@clun clun closed this as completed Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready_for_release
Projects
None yet
Development

No branches or pull requests

2 participants