WenDing-Y commented on code in PR #9161:
URL: https://github.com/apache/seatunnel/pull/9161#discussion_r2041332423
##########
seatunnel-connectors-v2/connector-elasticsearch/src/main/java/org/apache/seatunnel/connectors/seatunnel/elasticsearch/source/ElasticsearchSourceSplitEnumerator.java:
##########
@@ -80,9 +87,7 @@ public ElasticsearchSourceSplitEnumerator(
}
@Override
- public void open() {
- esRestClient = EsRestClient.createInstance(connConfig);
- }
Review Comment:
After testing, I found that it is related to the CloseableHttpAsyncClient
client in RestClient because this can cause the issue where although the file
is deleted, the thread still holds an open handle to the temporary file.
in jobmanager
```
ls -l /proc/1/fd/ | grep deleted
lr-x------ 1 flink flink 64 Apr 14 05:44 381 ->
/tmp/jm_00b72ebe540b0440ed4510730bb35a8b/blobStorage/job_fae4e51b34120030fbda6a238628bd3a/blob_p-3cfee1e57d60be6705eb5ca6458a32f526d30a3a-9b7914da78fe1a3c0389cdbbf9d1e481
(deleted)
```
--
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]