j1wonpark opened a new pull request, #4165:
URL: https://github.com/apache/amoro/pull/4165

   ## Why are the changes needed?
   
   When a test method in `TestInternalMixedCatalogService` fails mid-way after 
creating a table but before dropping it, the `@AfterEach` cleanup could not 
drop the non-empty database. This left residual state that caused cascading 
failures in subsequent nested test classes (`Database already exists`, 
assertion on `listDatabases().isEmpty()`, etc.).
   
   ## Brief change log
   
   - `TestTableCommit.after()`: Guard `dropTable` with `tableExists` check, 
wrap both `dropTable` and `dropDatabase` in try-catch to prevent cascading 
cleanup failures
   - `CompatibilityCatalogTests.cleanDatabase()`: Drop residual table before 
dropping database, wrap both in try-catch
   - `TestTableOperation.after()`: Wrap `dropDatabase` in try-catch for 
consistency with other nested test classes
   
   ## How was this patch tested?
   
   - [x] Run test locally before making a pull request
   
   ## Documentation
   
   - Does this pull request introduce a new feature? no
   - If yes, how is the feature documented? not applicable


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