-
Notifications
You must be signed in to change notification settings - Fork 148
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
Fileleak prevents application undeploy (caused by "WebappClassLoader.getJarFiles") #25193
Comments
To reproduce (requires windows OS):
Now you should see that two files cannot be deleted. To see the stacktrace where an unclosed file is opened
|
Keep this issue on hold - I think it got it to work. I applied a fix to Weld (weld/core#3069), built it and replaced "weld-osgi-bundle.jar" in my glassfish 7.0.18 installation with a renamed "weld-osgi-bundle-5.1.4-SNAPSHOT.jar". So, hopefully it is really fixed now. Or do you see a problem caused by me replacing "weld-osgi-bundle.jar"? |
What you did makes sense, @WolfgangHG. Thank you for those fixes! As soon as those fixes are released in Weld, we'll upgrade Weld in GlassFish. |
Weld 5.1.4 was released last week. So, it would be great if the update could be integrated in a Glassfish 7.0.21 release. |
Fixed by #25296 |
Many thanks! |
Sorry, this is a hard to reproduce issue, and I don't have an easy reproducer.
The https://github.com/arquillian/arquillian-extension-warp deploys as part of the test suite some war files to a WildFly/TomEE/Glassfish server. With Glassfish, undeploy fails to delete two jar files in "WEB-INF\lib" on windows, resulting in a delay of 20 seconds for each test until file deletion times out.
This happens with Glassfish 7.0.18
Using https://github.com/jenkinsci/lib-file-leak-detector/, I could track it down to two stacktraces that leave a file handle open. This tool prints at shutdown of Glassfish for each unclosed file the stack trace that opened it.
One is coming from JBoss Weld and I think I can send a pull request myself. Issue. https://issues.redhat.com/browse/WELD-2800
The other one is from Weld/Glassfish. Here is the output of "file-leak-detector" for one of the two jar files:
Do you have any idea about this?
Attached is the web app war file (rename it to "test.war") - but the issue does not happen if I just deploy/undeploy the app with the web console.
test.zip
The affected locked files are "arquillian-testenricher-cdi-jakarta.jar" and "arquillian-core.jar". Both define "META-INF\services".
More steps on reproducing it will follow in the next comment.
The text was updated successfully, but these errors were encountered: