Skip to content
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

CXF-7396: CachedOutputStream doesn't delete temp files #2048

Merged
merged 2 commits into from
Sep 22, 2024
Merged

Conversation

reta
Copy link
Member

@reta reta commented Sep 4, 2024

CachedOutputStream doesn't delete temp files. it turned out to be very challenging to handle all the edge (and non-edge) cases where CachedOutputStreams (or derived) streams stay unclosed. This change does not solve the root cause of the problem but offers at least a mitigation strategy in a shape of CachedOutputStreamCleaner that tracks unclosed CachedOutputStreams (or derived) streams and periodically tries to close those out.

@reta reta force-pushed the CXF-7396 branch 3 times, most recently from 80ca5ba to 3ba9271 Compare September 8, 2024 18:58
@reta reta force-pushed the CXF-7396 branch 2 times, most recently from 6a8ed4c to 26eaf39 Compare September 11, 2024 21:35
@reta reta marked this pull request as ready for review September 11, 2024 21:35
@reta reta requested a review from coheigea September 11, 2024 21:35
@reta reta merged commit 03a85a5 into apache:main Sep 22, 2024
4 checks passed
reta added a commit that referenced this pull request Sep 22, 2024
* CXF-7396: CachedOutputStream doesn't delete temp files

* Refactor the cleaner implementation and add guardrails for cleaner delay

(cherry picked from commit 03a85a5)
reta added a commit that referenced this pull request Sep 23, 2024
* CXF-7396: CachedOutputStream doesn't delete temp files

* Refactor the cleaner implementation and add guardrails for cleaner delay

(cherry picked from commit 03a85a5)
(cherry picked from commit 0a97dde)

# Conflicts:
#	core/pom.xml
reta added a commit that referenced this pull request Oct 1, 2024
* CXF-7396: CachedOutputStream doesn't delete temp files

* Refactor the cleaner implementation and add guardrails for cleaner delay

(cherry picked from commit 03a85a5)
(cherry picked from commit 0a97dde)

# Conflicts:
#	core/pom.xml
(cherry picked from commit 43b4eee)

# Conflicts:
#	core/pom.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants