Caideyipi commented on PR #17872:
URL: https://github.com/apache/iotdb/pull/17872#issuecomment-6410635827

   Self-review passed.
   
   This is a reproducible issue on a real 1 ConfigNode + 1 DataNode cluster: 
after running a query with sorting and TOP_K, the query mapping was cleared but 
one UDF class-loader reference remained. The leak reproduced with the original 
PR implementation.
   
   This update gives each TransformOperator its own resource ID based on the 
DriverTask ID and Operator ID, so operator-owned UDF resources are released 
with the query lifecycle.
   
   Validation:
   - Both lifecycle regression tests failed against the baseline and original 
PR head, then passed with this fix.
   - Focused Java 17 compilation passed.
   - Repeated the reproducer 10 times on the 1C+1D cluster. Each run returned 
the two expected rows, and both the UDF class-loader reference count and query 
mapping count returned to zero.
   - Full Maven reactor build was not run.


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