HDFS-16260. Make hdfs_deleteSnapshot tool cross platform#3532
Merged
goiri merged 11 commits intoapache:trunkfrom Oct 12, 2021
Merged
HDFS-16260. Make hdfs_deleteSnapshot tool cross platform#3532goiri merged 11 commits intoapache:trunkfrom
goiri merged 11 commits intoapache:trunkfrom
Conversation
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
goiri
reviewed
Oct 8, 2021
Member
There was a problem hiding this comment.
If we are splitting per line, let's split main.cc too
Member
There was a problem hiding this comment.
We are doing a lot of refactoring here that is not directly delete snapshot.
Let's do a separate JIRA for this refactor.
* The source files for hdfs_deleteSnapshot uses getopt for parsing the command line arguments. * getopt is available only on Linux and thus, isn't cross platform. We need to replace getopt with boost::program_options to make this cross platform.
* Needed to allow the help option as the only parameter that can be passed. * This fixes a test failure.
3712b52 to
27a0542
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. |
goiri
approved these changes
Oct 11, 2021
...dfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tools/hdfs_deleteSnapshot.cc
Show resolved
Hide resolved
...s-native-client/src/main/native/libhdfspp/tools/hdfs-delete-snapshot/hdfs-delete-snapshot.cc
Show resolved
Hide resolved
HarshitGupta11
pushed a commit
to HarshitGupta11/hadoop
that referenced
this pull request
Nov 28, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
The source files for hdfs_deleteSnapshot uses getopt for parsing the command line arguments. getopt is available only on Linux and thus, isn't cross platform. We need to replace getopt with boost::program_options to make this cross platform.
How was this patch tested?
Tested it by running locally.
Commands -

For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?