davsclaus commented on code in PR #30980:
URL: https://github.com/apache/camel/pull/30980#discussion_r4721028274
##########
components/camel-elasticsearch/src/main/java/org/apache/camel/component/es/ElasticsearchScrollRequestIterator.java:
##########
@@ -42,6 +47,7 @@ public class ElasticsearchScrollRequestIterator<TDocument>
implements Iterator<H
private String scrollId;
private boolean closed;
private int requestCount;
+ private Closeable resource;
Review Comment:
`closeOnClose()` runs in `process()` before the iterator is set as the body,
and an exchange only reaches another thread through a hand-over (seda queue,
executor, callback) that already gives happens-before; the other fields of the
iterator are plain as well, and it is not meant for concurrent use. No change
needed, resolving.
_Claude Code on behalf of davsclaus_
##########
components/camel-elasticsearch/src/main/java/org/apache/camel/component/es/ElasticsearchScrollRequestIterator.java:
##########
@@ -42,6 +47,7 @@ public class ElasticsearchScrollRequestIterator<TDocument>
implements Iterator<H
private String scrollId;
private boolean closed;
private int requestCount;
+ private Closeable resource;
Review Comment:
Same as above: the iterator reaches another thread only through an exchange
hand-over, which already publishes `resource`. Resolving.
_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]