-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
HDFS-16564. Use uint32_t for hdfs_find #4245
Conversation
...s-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tests/hdfspp_mini_dfs_smoke.cc
Outdated
Show resolved
Hide resolved
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
2eef94c
to
63293bb
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Hi @steveloughran,
No. The type
Yeah. It seems like we've a regression. I was able to reproduce this on the trunk on Debian 10. I'm trying to do a
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
* Need to use uint32_t since it's available on all platform as it's part of the C++ standard.
63293bb
to
eccc29e
Compare
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
This reverts commit eccc29e.
* hdfs_find uses u_int32_t type for storing the value for the max-depth command line argument. * The type u_int32_t isn't standard, isn't available on Windows and thus breaks cross-platform compatibility. We need to replace this with uint32_t which is available on all platforms since it's part of the C++ standard.
Description of PR
hdfs_find
usesu_int32_t
type for storing the value for themax-depth
command line argument -hadoop/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tools/hdfs-find/hdfs-find.cc
Line 43 in a631f45
The type
u_int32_t
isn't standard, isn't available on Windows and thus breaks cross-platform compatibility. We need to replace this withuint32_t
which is available on all platforms since it's part of the C++ standard.How was this patch tested?
The existing unit tests exercise this PR sufficiently.
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?