Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move the Hadoop header files to hdfs_filesystem.cc. #4795

Merged
merged 1 commit into from
Mar 7, 2024
Merged

Conversation

teo-tsirpanis
Copy link
Member

@teo-tsirpanis teo-tsirpanis commented Mar 7, 2024

SC-42734

This PR moves including hadoop/hdfs.h from hdfs_filesystem.h to the hdfs_filesystem.cc implementation file. Due to the current structure of the code, hdfs_filesystem.h is included by vfs.h, which is included by many files, resulting in having to specify the path to hadoop/hdfs.h in all dependents, such as unit tests. A similar change was recently made for the GCS SDK in #4777.

Thanks to @rroelke for finding this issue. Validated by successfully building all unit tests touched by #4793 with HDFS enabled.


TYPE: BUILD
DESC: Fix compiling unit tests when HDFS is enabled.

@rroelke
Copy link
Contributor

rroelke commented Mar 7, 2024

Very nice, looks generally better than my solution :)
At least I got to learn a little cmake.

Copy link

This pull request has been linked to Shortcut Story #42734: Cannot build unit tests when HDFS is enabled..

@KiterLuc KiterLuc merged commit 899f5bc into dev Mar 7, 2024
60 checks passed
@KiterLuc KiterLuc deleted the teo/hdfs-headers branch March 7, 2024 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants