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
Temporary files not cleaned up after Maven plugin execution #22108
Comments
Closing in favour of #22112. |
Looking at this more closely, I'd like to understand the need for the temporary file. Presumably there were entries of an unknown size that are too large to be dealt with in memory. If that's the case, I'd expect them to also be too large when writing unpack comments as it currently does everything in memory as well. It may be that, as the unpack comments are opt-in, we just haven't seen the problem yet. |
Whenever executing a Maven project build (with or without tests - doesn't matter), exactly two temporary files are left in place without any content, e.g.:
The only reference I found to this pattern was from the SizeCalculatingEntryWriter.
As everyone can see, using the temporary file is optional, although created every time and there is no safe-guard that would delete those files on JVM exit.
This means that over time, the temporary directory gets flooded with empty files.
The text was updated successfully, but these errors were encountered: