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
HBASE-27724 addFsRegionsMissingInMeta command should support dumping … #131
Conversation
💔 -1 overall
This message was automatically generated. |
Following was done to test the code changes:
Truncated test logs for reference:
Full test logs for reference: |
Also while testing, encountered HBASE-27961. Will work on batching for assignment as part of that JIRA. Please see the issue for details. Also the mentioned issue is why had to introduce the |
💔 -1 overall
This message was automatically generated. |
Hi @wchevreuil could you please review? |
🎊 +1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just have a nit comment for the descriptor.
" -i fileName1 fileName2"); | ||
writer.println(" If -o or --outputFile is specified, the output file(s) can be passed as"); | ||
writer.println(" input to assigns command via -i or -inputFiles option."); | ||
writer.println(" If -n or --numLines is specified, and say it is set to 100, this will"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: mention this should be used together with the -o
option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
🎊 +1 overall
This message was automatically generated. |
Hey just realized, need to sync hbck2 doc, please do not merge. |
Synced the doc. Good for review. @wchevreuil Also, will be creating another ticket as I see there are differences in the hbck2 doc and the command help output, hence we should sync them across all command. Did not piggy back those changes here to keep this PR clean. |
🎊 +1 overall
This message was automatically generated. |
Raised HBASE-27980 |
Gentle ping @wchevreuil, let me know if this revised PR looks good to you. CC: @petersomogyi |
…region list into file(s) which can be passed as input(s) to assigns command
Rebased code to resolve conflict. |
The 2nd commit 05795bf was a nit change affecting only docs. The 1st commit has been reviewed by @wchevreuil. |
🎊 +1 overall
This message was automatically generated. |
…region list into file(s) which can be passed as input(s) to assigns command
addMissingRegionsInMetaForTablesWrapper
which wraps existing code and add logic for parsing/processing for new command line args-o,--outputFile
: name/prefix of the file(s) to dump region names-n,--numLines
: number of lines to be written to each output filecase ADD_MISSING_REGIONS_IN_META_FOR_TABLES
implementation to be as per other command implementations by wrapping around try/catch and returningEXIT_FAILURE
code in case of error