shuwenwei opened a new pull request, #19107:
URL: https://github.com/apache/iotdb/pull/19107

   ## Summary
   
   - Add read/write locking to `UDFManagementService`: registration and 
deregistration take the write lock, while tree and table UDF queries take the 
read lock while resolving UDF classes and establishing loader pins.
   - Pin the active UDF classloader once during table-model analysis and 
release it on query cleanup, including retry and terminal-state paths.
   - Pin table-model fragment instances independently using their 
fragment-instance ID, and release the pin after all drivers close or when 
fragment construction fails.
   - Keep tree-model UDF handling on the same read-lock model while retaining 
its existing query-level loader lifecycle.
   
   This prevents an older UDF classloader from being closed when `CREATE 
FUNCTION` rotates the active loader while a table query or fragment can still 
lazily load helper classes, dependencies, resources, or `ServiceLoader` entries.
   
   ## Validation
   
   - `git diff --check`
   - Tests were not run because the repository instructions for this workspace 
prohibit compiling or running tests.
   


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