davsclaus commented on code in PR #28355:
URL: https://github.com/apache/camel/pull/28355#discussion_r4364454837
##########
components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/TarIterator.java:
##########
@@ -54,6 +56,7 @@ public class TarIterator implements Iterator<Message>,
Closeable {
private final Exchange exchange;
private long maxDecompressedSize = -1;
private volatile TarArchiveInputStream tarInputStream;
+ private final List<CachedOutputStream> cachedOutputStreamsToClose = new
ArrayList<>();
Review Comment:
The list is the same as in `ZipIterator`, and the splitter calls
`hasNext`/`next`/`close` of an iterator from one thread at a time, so a plain
`ArrayList` is right. The `volatile` fields were there before this PR; I left
them as they were.
_Claude Code on behalf of davsclaus_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]