[
https://issues.apache.org/jira/browse/CXF-9131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18010880#comment-18010880
]
Deepak commented on CXF-9131:
-----------------------------
[~reta] In the previous communication i was referring to 2 different parsing.
In the First call from cxf client to the target endpoint i received soap
response, cxf created temp files (example: temp1, temp2) but because of the cxf
bug the temp files were not removed.
In the Second call from cxf client to the target endpoint i received another
soap response, cxf created temp files (example: temp3, temp4) these temp files
are not removed because of cxf bug.
now if the cxf cleaner job runs, i expect only the old temp1 and temp2 files
are deleted. but i see that the temp3 and temp4 files which are still in use
also gets deleted.
this to me is a bug
> DelayedCachedOutputStreamCleaner clears the temp cache files even when the
> temp is still in use
> -----------------------------------------------------------------------------------------------
>
> Key: CXF-9131
> URL: https://issues.apache.org/jira/browse/CXF-9131
> Project: CXF
> Issue Type: Bug
> Reporter: Deepak
> Priority: Major
>
> DelayedCachedOutputStreamCleaner clears the temp cache files even when the
> temp is still in use.
> this class doesn't check whether or not the temp file is still being read
> before deletion.
> there should be logic in DelayedCachedOutputStreamCleaner that deletes the
> temp file only when it is not in use.
> [cxf/core/src/main/java/org/apache/cxf/io/DelayedCachedOutputStreamCleaner.java
> at cxf-3.5.10 · apache/cxf ·
> GitHub|https://github.com/apache/cxf/blob/cxf-3.5.10/core/src/main/java/org/apache/cxf/io/DelayedCachedOutputStreamCleaner.java]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)