zhuxiaoshang commented on a change in pull request #13414:
URL: https://github.com/apache/flink/pull/13414#discussion_r490723252



##########
File path: 
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/CatalogManager.java
##########
@@ -187,8 +187,8 @@ public void registerCatalog(String catalogName, Catalog 
catalog) {
                        throw new CatalogException(format("Catalog %s already 
exists.", catalogName));
                }
 
-               catalogs.put(catalogName, catalog);
                catalog.open();
+               catalogs.put(catalogName, catalog);

Review comment:
       thanks for your suggestions.i'll add a test case.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to