You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/12/07 08:44:07 UTC

[GitHub] [doris] Yulei-Yang opened a new issue, #14888: [Bug] No validation executed if new catalog name is already used when rename catalog

Yulei-Yang opened a new issue, #14888:
URL: https://github.com/apache/doris/issues/14888

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Version
   
   master
   
   ### What's Wrong?
   
   rename a catalog to an exist catalog's name can be executed successfully, and the catalog with new name will be deleted. this should not happen.
   
   mysql> show catalogs;
   +-----------+-------------+----------+-----------+
   | CatalogId | CatalogName | Type     | IsCurrent |
   +-----------+-------------+----------+-----------+
   |    190401 | es          | es       |           |
   |    164205 | hms         | hms      |           |
   |         0 | internal    | internal | yes       |
   |    136591 | mmm         | hms      |           |
   +-----------+-------------+----------+-----------+
   mysql> alter catalog mmm rename hms;
   Query OK, 0 rows affected (0.01 sec)
   
   mysql> show catalogs;
   +-----------+-------------+----------+-----------+
   | CatalogId | CatalogName | Type     | IsCurrent |
   +-----------+-------------+----------+-----------+
   |    190401 | es          | es       |           |
   |    136591 | hms         | hms      |           |
   |         0 | internal    | internal | yes       |
   +-----------+-------------+----------+-----------+
   
   ### What You Expected?
   
   fix it
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] morningman closed issue #14888: [Bug] No validation executed if new catalog name is already used when rename catalog

Posted by GitBox <gi...@apache.org>.
morningman closed issue #14888: [Bug] No validation executed if new catalog name is already used when rename catalog
URL: https://github.com/apache/doris/issues/14888


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org