pratt4 opened a new pull request, #25868:
URL: https://github.com/apache/pulsar/pull/25868

   Fixes #25791.
   
   `FunctionsManager.reloadFunctions()` used to recreate every built-in 
function archive on reload, then close all previous `FunctionArchive` 
instances. That meant unchanged NARs were still reopened and their existing 
classloader/package state was discarded.
   
   This mirrors the incremental reload behavior recently added for connectors.
   
   ### Changes
   
   - Track function archive MD5 in `FunctionArchive`
   - Add `FunctionUtils.reloadFunctions()`
   - Reuse existing `FunctionArchive` instances when the archive path and MD5 
are unchanged
   - Close only changed or removed function archives
   - Update `FunctionsManager.reloadFunctions()` to use the incremental reload 
result
   - Add regression tests for unchanged, changed, removed, and 
missing-directory reload cases
   


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