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

   ### What changes were proposed in this pull request?
   
   Moved the success `LOG.info("Function dropped: ...")` inside the `else` 
branch of the `dropped` check, so it only fires when the function was actually 
dropped.
   
   ### Why are the changes needed?
   
   `FunctionOperations.dropFunction()` unconditionally logs "Function dropped" 
even when `dispatcher.dropFunction()` returns false. This produces misleading 
log output.
   
   Fix: #10628
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Existing `TestFunctionOperations.testDropFunction()` covers both 
`dropped=true` and `dropped=false` paths. The fix follows the same pattern 
applied to `CatalogOperations` in PR #8351.


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