bobpaulin commented on PR #10691:
URL: https://github.com/apache/nifi/pull/10691#issuecomment-3710639620

   Looks like the reason these test may be failing is due to the Method objects 
created from the Class are copies instead of directly referenced objects from 
Class object.  Because of this the weak References to the methods will be 
eligible for garbage collection.  This may be the reason the system test were 
failing.  I experimented with a few different approaches including switching to 
MethodHandles which also leaves you with a reference to the class object which 
will prevent the WeakHashMap from doing what it is suppose to.  So I've got a 
different approach that removes the keys when the instance classloader is 
closed.  This also provides the desired effect of allowing the classes to be 
garbage collected.  Will update this PR for this approach and will change the 
title of this PR to better represent this change.


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