-
Notifications
You must be signed in to change notification settings - Fork 692
fix for TOMEE-4560 #2408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: tomee-8.x
Are you sure you want to change the base?
fix for TOMEE-4560 #2408
Conversation
|
the build for the pull request failed with, 'Error: This request has been automatically failed because it uses a deprecated version of I do not understand this error. |
|
Thanks for the PR. Please note: https://tomee.apache.org/tomee-8.0-eol.html The branch uses an EOL GitHub Action version. For that reason the build fails right now. |
https://tomee.apache.org/tomee-8.0-eol.html says 'bugs affecting only the tomee-8.x branch will not be addressed' , I am not sure if the issue is only for 8.x as I have been using only this version |
|
Yes, it is very likely that this is also present in newer TomEE versions, as the class itself did not change apart from the Could we add a unit test to verify the change and reproduce the issue in the first place? From what I can see in the Jira ticket, reproduction code was already provided, so it should be possible to turn that into a unit test. |
dd11570 to
159bef1
Compare
managed to add a unit test case, hope that helps, this test should fail now without the fix... |
|
Hi All, First, @kartiksirigeri thank you so much for taking the initiative to try and fix this. It's a big code base and you dug right in. That says a lot of very good things about you. I can verify this is a memory leak. Some notes first. It's not legal to put The upshot of this is that the fix checks the interface for This all said, the handler leak discovered is still very valid. If you were to move the I dug through the code looking for a way to get the knowledge that I dug through the code trying to refresh my memory on why we even have a registry in the first place and came to the conclusion it might be something we could potentially remove entirely. We'd only be able to do that on the TomEE 11 branch and before it goes final. @kartiksirigeri if that's something you might be interested taking the lead on, join the dev list (mailto:dev-subscribe@tomee.apache.org) and we can talk more there. |
Hi @dblevins, i had some doubt too on where the annotation should be added while making this change, however the changes made at least gave a confirmation to me that the real cause was the registry. I do not understand the specs/codebase much but would be happy to contribute... |
@kartiksirigeri Great to hear! Please feel free to join the dev mailing list (mailto:dev-subscribe@tomee.apache.org) and start a new thread about the registry. We truly welcome all contributions - so thank you for taking the initiative and opening this PR. There has been some prior discussion on the topic here, but I agree that continuing the conversation in a new thread makes sense. In short (to summarize @dblevins from the other thread), we would need to (at least attempt to) run the EJB TCK of EE 9.1. Happy to share more details on the mailing list. |
Proxy handler does not remove the stateful EJB3 from the liveregistry on invocation of @remove annotated method. Check is added to identify invocation of @remove annotated method of stateful EJB3.
Defect link : https://issues.apache.org/jira/browse/TOMEE-4560