mchades opened a new issue, #5082:
URL: https://github.com/apache/gravitino/issues/5082

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   we can modify the `testDropCatalog()` in `CatalogIT` class to describe the 
problem:
   ```java
   @Test
     public void testDropCatalog() {
       String catalogName = GravitinoITUtils.genRandomName("catalog");
       Assertions.assertFalse(metalake.catalogExists(catalogName));
   
       Map<String, String> properties = Maps.newHashMap();
       properties.put("metastore.uris", hmsUri);
       Catalog catalog =
           metalake.createCatalog(
               catalogName, Catalog.Type.RELATIONAL, "hive", "catalog comment", 
properties);
       Assertions.assertTrue(metalake.catalogExists(catalogName));
       Assertions.assertEquals(catalogName, catalog.name());
   
       Assertions.assertThrows(
           CatalogAlreadyExistsException.class, () -> metalake.createCatalog(
               catalogName, Catalog.Type.RELATIONAL, "hive", "catalog comment", 
properties));
       Assertions.assertTrue(metalake.catalogExists(catalogName));
   
       Assertions.assertTrue(metalake.dropCatalog(catalogName), "catalog should 
be dropped");
       Assertions.assertFalse(metalake.dropCatalog(catalogName), "catalog 
should be non-existent");
     }
   ```
   
   the assertion will failed at:
   ```java
   Assertions.assertTrue(metalake.dropCatalog(catalogName), "catalog should be 
dropped");
   ```
   
   
   
   ### Error message and/or stacktrace
   
   > 
   > catalog should be dropped
   > Expected :true
   > Actual   :false
   > <Click to see difference>
   > 
   > org.opentest4j.AssertionFailedError: catalog should be dropped ==> 
expected: <true> but was: <false>
   
   ### How to reproduce
   
   follow above describtion
   
   ### Additional context
   
   the load operation before drop can successfully because the catalog cache


-- 
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: [email protected]

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

Reply via email to