-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-23123 Merge_region fails from shell #690
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
Conversation
💔 -1 overall
This message was automatically generated. |
Thank you @saintstack for the approval. |
💔 -1 overall
This message was automatically generated. |
We do not have a UT in hbase-shell for this command? |
@Apache9 @virajjasani However, I am not sure if maven skip running this test ?? When I run "mvn test" on "hbase-shell" module, it only runs two test classes and reports success but I don't find all of them are running. This is weird. I will check on this today. [INFO] ------------------------------------------------------- @virajjasani "return statement is redundant" is a warning of ruby check style. This is about I return "nil" without any variable check, something like "if (var > x) else return nil" etc. I directly return nil in script because the method mergeRegionsAsync returns void. Future<Void> mergeRegionsAsync(byte[] nameOfRegionA, byte[] nameOfRegionB, If I don't use nil, then I will get CompletableFuture output. Example: |
Correct, just realized by default async method's return value will be passed on to merge_region.rb. Regarding the tests, better to include test for merge_region() with this PR. And I agree that "mvn test" doesn't run all tests for hbase-shell and we have to manually run them as of now. |
Great @virajjasani I will add merge_region testcase. I am very curious that why would we need to run hbase-shell test cases manually, Sorry. Is it because the test category is LargeTest? |
I got @virajjasani. I see TestAdminShell runs here. |
@Apache9 @virajjasani I included test case for merge_region.
|
💔 -1 overall
This message was automatically generated. |
The deprecated method Admin#mergeRegions is removed in HBase 3.0 but we need to update new API in admin script.