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

[shongo-cli] create-tag command loops on failure #19

Open
Puckoland opened this issue Feb 24, 2023 · 0 comments
Open

[shongo-cli] create-tag command loops on failure #19

Puckoland opened this issue Feb 24, 2023 · 0 comments
Labels

Comments

@Puckoland
Copy link
Collaborator

When creating a new tag using shongo-cli, it may fail (e.g. using the same name as was already present in the tag table).
This results in CLI looping - trying to create a specified tag and failing repeatedly.

Sample CLI output of creating tag t5 which is already defined.

shongo> create-tag 
Tag name: t5
Creating tag...
[ERROR] Server failed to perform request!
Fault 0: Unknown error: Failed to invoke Resource.createTag: Error while committing the transaction
Creating tag...
[ERROR] Server failed to perform request!
Fault 0: Unknown error: Failed to invoke Resource.createTag: Error while committing the transaction
Creating tag...
[ERROR] Server failed to perform request!
Fault 0: Unknown error: Failed to invoke Resource.createTag: Error while committing the transaction
...

Shongo-controller log:

Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "tag_name_key"
  Detail: Key (name)=(t5) already exists.
@Puckoland Puckoland added the bug label Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant