You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ RUN ] TestHadoopFileSystem.FileSystemFromUri
/arrow/cpp/src/arrow/filesystem/hdfs_test.cc:119: !!! uri = hdfs://impala:8020/?replication=0&user=hdfs
/arrow/cpp/src/arrow/filesystem/hdfs_test.cc:123: Failure
Expected equality of these values:
path
Which is: ""
"/"
[ FAILED ] TestHadoopFileSystem.FileSystemFromUri (32 ms)
@westonpace do you think the assert should be modified here or there's something else to be done?
raulcd
changed the title
[C++][CI] TestHadoopFileSystem.FileSystemFromUri fails on our nightly hdfs tests
[CI][C++] TestHadoopFileSystem.FileSystemFromUri fails on our nightly hdfs tests
May 17, 2023
No, we shouldn't fix the assert. The HDFS filesystem should be returning / in this case (we trim the trailing slash but not if the entire path is /). I can put a fix together.
…lper to fix HDFS tests (#36063)
### Rationale for this change
As discussed on the issue the HDFS filesystem should be returning `/` if the entire path is `/`
### What changes are included in this PR?
Change behavior of helper `PathFromUriHelper` when ignoring host to preserve `/`
### Are these changes tested?
On CI and archery.
### Are there any user-facing changes?
No
* Closes: #35635
Authored-by: Raúl Cumplido <raulcumplido@gmail.com>
Signed-off-by: Weston Pace <weston.pace@gmail.com>
Describe the bug, including details regarding any error messages, version, and platform.
Nightly HDFS tests have been failing for the last couple of weeks:
The error failure is the following:
This was introduced on:
https://github.com/apache/arrow/pull/34420/files#diff-fb718c6107b7bbdeac010067dd0633e0eb3bad5ea054013ffc3bd19652748362
I've been able to fix the build locally by applying this patch to modify the assert on the test:
but I am unsure whether this is the expected behavior or there is an underlying issue.
Component(s)
C++, Continuous Integration
The text was updated successfully, but these errors were encountered: