SEZ9 commented on issue #13769:
URL: https://github.com/apache/seatunnel/issues/13769#issuecomment-7295422774

   Thanks for the detailed report, the benchmarks, and the 22-case comparison. 
I have not checked the connector source myself, so this reply is based on the 
issue as written. As you describe it, listing the parent directory on every 
`open()` makes the per-file cost grow with directory size, and your numbers 
show that clearly.
   
   The proposed scope sounds reasonable to review:
   
   - change `SFTPFileSystem.open()` only, and leave every other caller of 
`getFileStatus` unchanged;
   - quote the path before `lstat`;
   - keep the symbolic-link handling through the existing status builder;
   - keep reporting SFTP failures as `FileNotFoundException`.
   
   Keeping the error-mapping change as a separate discussion also makes sense.
   
   A PR is welcome, so please link it here when it is ready. In the PR, it 
would help to:
   
   - call out the one behavior difference (a directory with execute but not 
read permission), as you planned, so reviewers can decide whether it is 
acceptable;
   - include unit tests for the cases you compared (special characters, 
symlinks, missing files);
   - mention which SFTP server implementation you tested against.
   
   <!-- streview-comment:2753 -->


-- 
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]

Reply via email to