github-actions[bot] opened a new pull request, #9473:
URL: https://github.com/apache/gravitino/pull/9473

   ## What changes were proposed in this pull request?
   
   This PR implements a check to prevent the deletion of non-cascading schemas 
that still contain topic metadata.
   
   ## Why are the changes needed? 
   
   Currently, schema deletion checks for dependant tables, filesets and models. 
If the schema contains topics, the deletion proceeds regardless. Leaving 
orphaned topic metadata in the database.
   This fix ensures a NonEmptyEntityException is thrown if any active topics 
are found within the schema. This matches previous checks for other subschema 
entities.
   
   The fix was implemeted through a check in the non cascading branch of 
deleteSchema method in SchemaMetaService.java.
   
   Fix: #9078
   
   ## Does this PR introduce any user-facing change?
   
   Nothing more than an error message.
   
   ## How was this patch tested?
   Added testDeleteSchemaNonCascadingFailsWhenTopicExists, to 
TestSchemaMetaService.java
   ./gradlew :core:test
   
   All tests passed.
   
   [#9078] Improvement(core):In SchemaMetaService.java block non-cascading 
schema deletions when topics still exist


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