HarshMehta112 opened a new pull request, #9317:
URL: https://github.com/apache/gravitino/pull/9317

   <!--
   1. Title: [#9307] fix(core): fix missing-partition handling in 
PartitionOperations
   -->
     
   ### What changes were proposed in this pull request?
   
   This change updates the handling of partitions in `PartitionOperations` so 
that missing-partition cases are properly handled, avoiding server errors when 
partitions are missing or invalid.
   
   ### Why are the changes needed?
   
   Without this change, in certain scenarios where a partition is missing or 
not found, operations in `PartitionOperations` could trigger server-side errors 
— e.g. a NullPointerException or inappropriate behavior when partition metadata 
is absent. This fix ensures robustness by detecting missing partitions and 
handling them gracefully, preventing potential crashes.  
   
   Fixes: #9307  
   
   ### Does this PR introduce _any_ user-facing change?
   
   No — this change is internal to partition-handling logic. The public API 
remains the same; there are no changes to user-visible APIs or configuration 
keys.  
   
   ### How was this patch tested?
   
   By applying the patch and running the existing test suite to ensure no 
regressions. For partition operations involving missing partitions, the 
behavior has been corrected (i.e. operations now fail gracefully instead of 
erroring). If necessary, additional unit tests should be added to cover 
missing-partition cases to ensure this fix works reliably under various 
scenarios.  
   


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