jiangxt2 opened a new pull request, #55776: URL: https://github.com/apache/arrow/pull/55776
### Rationale for this change `HadoopFileSystem::GetFileInfo` reports any HDFS path-info I/O error as `NotFound`. This can hide permission or connection failures, including when a selector with `allow_not_found` falls back to a path-info lookup. ### What changes are included in this PR? Return `NotFound` for `ENOENT` and propagate other errors. Add a regression test covering single-path, multiple-path, and selector queries. ### Are these changes tested? - Existing HDFS C++ filesystem tests passed against a single-node Hadoop 3.4.1 cluster. - From the C++ build directory, `./release/arrow-hdfs-test --gtest_filter=TestHadoopFileSystem.GetFileInfoPropagatesPathErrors` passed against the same HDFS setup. The test injects libhdfs errors and checks all three query paths. - The applicable commit hooks passed. A `CHECKIN`-level Clang build has not been run. ### Are there any user-facing changes? **This PR includes breaking changes to public APIs.** HDFS path-info queries now return an I/O error for failures that were previously reported as `NotFound`. Applications that relied on the previous behavior may need to handle these errors. ### Was AI used for this PR? **PR code and description written by:** - [x] Human - [x] AI AI assisted with the implementation, tests, and PR description. **Reviewed before submission by:** - [x] Human - [x] AI - [ ] Not reviewed * GitHub Issue: #55424 -- 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]
