healchow commented on code in PR #5744:
URL: https://github.com/apache/inlong/pull/5744#discussion_r959325752
##########
inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/sources/reader/file/FileReaderOperator.java:
##########
@@ -61,10 +61,10 @@ public class FileReaderOperator extends AbstractReader {
public Stream<String> stream;
public Map<String, String> metadata;
public JobProfile jobConf;
- private Iterator<String> iterator;
+ public Iterator<String> iterator;
+ public boolean finished = false;
Review Comment:
Suggested adding `volatile` for `finished` field.
--
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]