Skip to content

HBASE-22414 Interruption of moving regions in RSGroup will cause regi… - #323

Closed
sunhelly wants to merge 16 commits into
apache:masterfrom
sunhelly:dev
Closed

HBASE-22414 Interruption of moving regions in RSGroup will cause regi…#323
sunhelly wants to merge 16 commits into
apache:masterfrom
sunhelly:dev

Conversation

@sunhelly

Copy link
Copy Markdown
Contributor

…ons on wrong rs

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
0reexec180Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
+1test4tests0The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1mvninstall342master passed
+1compile31master passed
+1checkstyle16master passed
+1shadedjars335branch has no errors when building our shaded downstream artifacts.
+1findbugs50master passed
+1javadoc22master passed
_ Patch Compile Tests _
+1mvninstall308the patch passed
+1compile30the patch passed
+1javac30the patch passed
+1checkstyle15the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedjars337patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck967Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1findbugs57the patch passed
+1javadoc24the patch passed
_ Other Tests _
+1unit471hbase-rsgroup in the patch passed.
+1asflicense12The patch does not generate ASF License warnings.
3589
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/1/artifact/out/Dockerfile
GITHUB PR#323
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux fa1dda8fc2b5 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / ac3d09e
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/1/testReport/
Max. process+thread count4517 (vs. ulimit of 10000)
modulesC: hbase-rsgroup U: hbase-rsgroup
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/1/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

try {
this.master.getAssignmentManager().move(region);
}catch (IOException ioe){
LOG.error("Move region {} from group failed, will retry, current retry time is {}",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May get too verbose. How about log as debug on each retry, then if max number of reties has been reached, log as error?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I agree. But I think we need failed regions' names to move them to the target group servers after the failed call, because we can't call move tables or servers methods to move failed regions again.Maybe I can add a failed regions list in the ex message when max number of reties has been reached.What do you think about it?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have changed this log level to DEBUG, and added a failed regions list in the ex message when max number of reties has been reached.


@Test
public void testFailedMoveWhenMoveServer() throws Exception {
final RSGroupInfo newGroup = addGroup(getGroupName(name.getMethodName()), 1);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addGroup already invokes _ moveServerRegionsFromGroup_ indirectly, and adds an RS to it. We could simplify this test if we just create a new group from RSGroupAdminServer.addRSGroup, pick one of the RSes from assignMap, change one of its regions state, then call later call RSGroupAdminServer.moveServers?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, good idea.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case, I have used rsGroupAdmin.addRSGroup to add a new group without adding server. Then I create a multi-region table, choose a region to change state, and record the server that the region we changed on. In the last call RSGroupAdminServer.moveServers to move the recorded server, and check if the error message contains the region name.

}

@Test
public void testFailedMoveWhenMoveTable() throws Exception {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as to the tested methods, we may apply some code reuse, given how similarly the two test structures are?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I make a function named setARegionState to randomly choosing a region and set its state. The difference of the two UTs is at adding group and moving operation. Is this OK?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add a new skeleton function recoverRegionStateThread at the newly attached patch.

@sunhelly

Copy link
Copy Markdown
ContributorAuthor

@wchevreuil Thank you for reviewing, I'll change codes follow your comments.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec173Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
+1test4tests0The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1mvninstall326master passed
+1compile30master passed
+1checkstyle15master passed
+1shadedjars344branch has no errors when building our shaded downstream artifacts.
+1findbugs56master passed
+1javadoc23master passed
_ Patch Compile Tests _
+1mvninstall307the patch passed
+1compile31the patch passed
+1javac31the patch passed
-1checkstyle14hbase-rsgroup: The patch generated 5 new + 2 unchanged - 0 fixed = 7 total (was 2)
+1whitespace0The patch has no whitespace issues.
+1shadedjars337patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck914Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1findbugs58the patch passed
+1javadoc24the patch passed
_ Other Tests _
+1unit589hbase-rsgroup in the patch passed.
+1asflicense12The patch does not generate ASF License warnings.
3638
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/2/artifact/out/Dockerfile
GITHUB PR#323
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 39f7ce41a087 4.4.0-143-generic #169-Ubuntu SMP Thu Feb 7 07:56:38 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / 9aee88e
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/2/artifact/out/diff-checkstyle-hbase-rsgroup.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/2/testReport/
Max. process+thread count4609 (vs. ulimit of 10000)
modulesC: hbase-rsgroup U: hbase-rsgroup
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/2/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec45Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
+1test4tests0The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1mvninstall304master passed
+1compile30master passed
+1checkstyle15master passed
+1shadedjars335branch has no errors when building our shaded downstream artifacts.
+1findbugs48master passed
+1javadoc24master passed
_ Patch Compile Tests _
+1mvninstall301the patch passed
+1compile30the patch passed
+1javac30the patch passed
-1checkstyle15hbase-rsgroup: The patch generated 1 new + 2 unchanged - 0 fixed = 3 total (was 2)
+1whitespace0The patch has no whitespace issues.
+1shadedjars336patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck944Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1findbugs60the patch passed
+1javadoc24the patch passed
_ Other Tests _
+1unit586hbase-rsgroup in the patch passed.
+1asflicense12The patch does not generate ASF License warnings.
3486
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/3/artifact/out/Dockerfile
GITHUB PR#323
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 99dd734acf2d 4.4.0-143-generic #169-Ubuntu SMP Thu Feb 7 07:56:38 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / 9aee88e
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/3/artifact/out/diff-checkstyle-hbase-rsgroup.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/3/testReport/
Max. process+thread count4562 (vs. ulimit of 10000)
modulesC: hbase-rsgroup U: hbase-rsgroup
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/3/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
0reexec166Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
+1test4tests0The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1mvninstall268master passed
+1compile25master passed
+1checkstyle13master passed
+1shadedjars277branch has no errors when building our shaded downstream artifacts.
+1findbugs41master passed
+1javadoc20master passed
_ Patch Compile Tests _
+1mvninstall234the patch passed
+1compile24the patch passed
+1javac24the patch passed
+1checkstyle12the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedjars261patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck746Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1findbugs47the patch passed
+1javadoc20the patch passed
_ Other Tests _
+1unit473hbase-rsgroup in the patch passed.
+1asflicense11The patch does not generate ASF License warnings.
2963
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/4/artifact/out/Dockerfile
GITHUB PR#323
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 4c3c5d4074ee 4.4.0-137-generic #163-Ubuntu SMP Mon Sep 24 13:14:43 UTC 2018 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / c1e5350
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/4/testReport/
Max. process+thread count4437 (vs. ulimit of 10000)
modulesC: hbase-rsgroup U: hbase-rsgroup
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/4/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

*/
private void moveServerRegionsFromGroup(Set<Address> servers, String targetGroupName)
private <T> void moveRegionsToOrFromGroup(Set<T> set, String targetGroupName, MoveType type)
throws IOException {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this really a good idea to group "TO and FROM" into one method? It's an open question, just want to hear some reasoning from you. thanks

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think added To/From to method name makes codes more easy to be understood.
And just like writing in the docs, TO means move tables regions, FROM means move server regions.

getRegionState(region).isFailedOpen()) {
continue;
for (Iterator<T> iter = newSet.iterator(); iter.hasNext(); ) {
T el = iter.next();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"el" this naming is not very good IMO.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

/**
* Move every region from servers which are currently located on these servers,
* but should not be located there.
* When move a table to a group, all regions of it must be moved to group servers (to the group).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should make this description clearer regarding FROM , TO, TABLE and GROUP

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
0reexec46Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
+1test4tests0The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1mvninstall248master passed
+1compile24master passed
+1checkstyle13master passed
+1shadedjars279branch has no errors when building our shaded downstream artifacts.
+1findbugs36master passed
+1javadoc18master passed
_ Patch Compile Tests _
+1mvninstall235the patch passed
+1compile23the patch passed
+1javac23the patch passed
+1checkstyle12the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedjars264patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck750Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1findbugs46the patch passed
+1javadoc20the patch passed
_ Other Tests _
+1unit462hbase-rsgroup in the patch passed.
+1asflicense11The patch does not generate ASF License warnings.
2797
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/5/artifact/out/Dockerfile
GITHUB PR#323
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux b83c99414e23 4.4.0-137-generic #163-Ubuntu SMP Mon Sep 24 13:14:43 UTC 2018 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / 0198868
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/5/testReport/
Max. process+thread count4453 (vs. ulimit of 10000)
modulesC: hbase-rsgroup U: hbase-rsgroup
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/5/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@wchevreuilwchevreuil left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @xcangCRM , my opinion is that this single method resulting from a merge of previously two moveServerRegionsFromGroup and moveTableRegionsToGroup does not look easier to understand.

My earlier suggestion was just to define a common skeleton method that would be reused by both moveServerRegionsFromGroup and moveTableRegionsToGroup, given that the loop structures were basically the same, with variation only on Set types and validation logic. I believe this could be achieved by defining a common method using lambdas and generics, for example, something like:

...
private <T> void moveRegionsBetweenGroups(Set<T> regionsOwners, String targetGroupName, Function<T, List<RegionInfo>> getRegionsInfo, Function<RegionInfo,Boolean> validation, Function<T,String> getOwnerName) throws IOException
...
Then _ moveServerRegionsFromGroup_ and _ moveTableRegionsToGroup_ would reuse it, defining specific validation logic, for example moveServerRegionsFromGroup would something such as below:

moveRegionsBetweenGroups(servers, targetGroupName, rs -> getRegions(rs), info -> { return getRSGroupInfo(targetGroupName).containsTable(info.getTable());}, rs -> rs.getHostname());

@wchevreuil

Copy link
Copy Markdown
Contributor

Pushed a commit with an example for the skeleton mentioned previously. Let me know if you guys agree with this.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec194Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
+1test4tests0The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1mvninstall274master passed
+1compile25master passed
+1checkstyle13master passed
+1shadedjars290branch has no errors when building our shaded downstream artifacts.
+1findbugs39master passed
+1javadoc20master passed
_ Patch Compile Tests _
+1mvninstall265the patch passed
+1compile25the patch passed
+1javac25the patch passed
-1checkstyle12hbase-rsgroup: The patch generated 1 new + 2 unchanged - 0 fixed = 3 total (was 2)
+1whitespace0The patch has no whitespace issues.
+1shadedjars291patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck833Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1findbugs46the patch passed
+1javadoc19the patch passed
_ Other Tests _
+1unit372hbase-rsgroup in the patch passed.
+1asflicense11The patch does not generate ASF License warnings.
3055
SubsystemReport/Notes
DockerClient=18.09.5 Server=18.09.5 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/6/artifact/out/Dockerfile
GITHUB PR#323
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux b89c23d7d145 4.15.0-52-generic #56-Ubuntu SMP Tue Jun 4 22:49:08 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / 0c8dc5d
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/6/artifact/out/diff-checkstyle-hbase-rsgroup.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/6/testReport/
Max. process+thread count4460 (vs. ulimit of 10000)
modulesC: hbase-rsgroup U: hbase-rsgroup
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/6/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@sunhelly

Copy link
Copy Markdown
ContributorAuthor

@wchevreuil I agree with you.

@wchevreuil

Copy link
Copy Markdown
Contributor

@sunhelly Cool, thanks for reviewing it, had just pushed another commit addressing checkstyle issue reported previously. @xcangCRM , let us know if you have any concerns/suggestions still, or if you think this is good to go, I can squash commits and merge into master.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
0reexec165Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
+1test4tests0The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1mvninstall316master passed
+1compile30master passed
+1checkstyle16master passed
+1shadedjars329branch has no errors when building our shaded downstream artifacts.
+1findbugs49master passed
+1javadoc23master passed
_ Patch Compile Tests _
+1mvninstall301the patch passed
+1compile30the patch passed
+1javac30the patch passed
+1checkstyle15the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedjars343patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck935Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1findbugs59the patch passed
+1javadoc23the patch passed
_ Other Tests _
+1unit590hbase-rsgroup in the patch passed.
+1asflicense13The patch does not generate ASF License warnings.
3619
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/7/artifact/out/Dockerfile
GITHUB PR#323
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux bda5627009f8 4.4.0-143-generic #169-Ubuntu SMP Thu Feb 7 07:56:38 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / 62c7e73
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/7/testReport/
Max. process+thread count4670 (vs. ulimit of 10000)
modulesC: hbase-rsgroup U: hbase-rsgroup
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/7/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec157Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
+1test4tests0The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1mvninstall251master passed
+1compile25master passed
+1checkstyle13master passed
+1shadedjars281branch has no errors when building our shaded downstream artifacts.
+1findbugs40master passed
+1javadoc19master passed
_ Patch Compile Tests _
+1mvninstall251the patch passed
+1compile24the patch passed
+1javac24the patch passed
+1checkstyle12the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedjars262patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck727Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1findbugs47the patch passed
+1javadoc20the patch passed
_ Other Tests _
-1unit608hbase-rsgroup in the patch failed.
+1asflicense11The patch does not generate ASF License warnings.
3069
ReasonTests
Failed junit testshadoop.hbase.rsgroup.TestRSGroupsAdmin1
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/8/artifact/out/Dockerfile
GITHUB PR#323
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 688c3a55e88d 4.4.0-137-generic #163-Ubuntu SMP Mon Sep 24 13:14:43 UTC 2018 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / 605f8a1
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
unithttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/8/artifact/out/patch-unit-hbase-rsgroup.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/8/testReport/
Max. process+thread count4591 (vs. ulimit of 10000)
modulesC: hbase-rsgroup U: hbase-rsgroup
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/8/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec170Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
+1test4tests0The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1mvninstall324master passed
+1compile31master passed
+1checkstyle14master passed
+1shadedjars334branch has no errors when building our shaded downstream artifacts.
+1findbugs50master passed
+1javadoc24master passed
_ Patch Compile Tests _
+1mvninstall305the patch passed
+1compile30the patch passed
+1javac30the patch passed
-1checkstyle15hbase-rsgroup: The patch generated 9 new + 2 unchanged - 0 fixed = 11 total (was 2)
+1whitespace0The patch has no whitespace issues.
+1shadedjars332patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck956Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1findbugs59the patch passed
+1javadoc24the patch passed
_ Other Tests _
+1unit485hbase-rsgroup in the patch passed.
+1asflicense11The patch does not generate ASF License warnings.
3565
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/9/artifact/out/Dockerfile
GITHUB PR#323
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux faf329789726 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / 605f8a1
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/9/artifact/out/diff-checkstyle-hbase-rsgroup.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/9/testReport/
Max. process+thread count4618 (vs. ulimit of 10000)
modulesC: hbase-rsgroup U: hbase-rsgroup
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/9/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec163Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
+1test4tests0The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1mvninstall308master passed
+1compile29master passed
+1checkstyle14master passed
+1shadedjars334branch has no errors when building our shaded downstream artifacts.
+1findbugs47master passed
+1javadoc23master passed
_ Patch Compile Tests _
+1mvninstall306the patch passed
+1compile30the patch passed
+1javac30the patch passed
-1checkstyle15hbase-rsgroup: The patch generated 28 new + 2 unchanged - 0 fixed = 30 total (was 2)
+1whitespace0The patch has no whitespace issues.
+1shadedjars353patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck1013Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1findbugs62the patch passed
+1javadoc23the patch passed
_ Other Tests _
+1unit531hbase-rsgroup in the patch passed.
+1asflicense12The patch does not generate ASF License warnings.
3681
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/10/artifact/out/Dockerfile
GITHUB PR#323
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 82d5a8ad84e9 4.4.0-143-generic #169-Ubuntu SMP Thu Feb 7 07:56:38 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / 605f8a1
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/10/artifact/out/diff-checkstyle-hbase-rsgroup.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/10/testReport/
Max. process+thread count4423 (vs. ulimit of 10000)
modulesC: hbase-rsgroup U: hbase-rsgroup
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/10/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
0reexec62Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
+1test4tests0The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1mvninstall293master passed
+1compile22master passed
+1checkstyle11master passed
+1shadedjars289branch has no errors when building our shaded downstream artifacts.
+1findbugs45master passed
+1javadoc20master passed
_ Patch Compile Tests _
+1mvninstall264the patch passed
+1compile24the patch passed
+1javac24the patch passed
+1checkstyle13the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedjars290patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck853Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1findbugs46the patch passed
+1javadoc21the patch passed
_ Other Tests _
+1unit635hbase-rsgroup in the patch passed.
+1asflicense11The patch does not generate ASF License warnings.
3214
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/11/artifact/out/Dockerfile
GITHUB PR#323
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 84c183858ba1 4.4.0-137-generic #163-Ubuntu SMP Mon Sep 24 13:14:43 UTC 2018 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / 605f8a1
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/11/testReport/
Max. process+thread count4298 (vs. ulimit of 10000)
modulesC: hbase-rsgroup U: hbase-rsgroup
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/11/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@sunhelly

Copy link
Copy Markdown
ContributorAuthor

@wchevreuil I have updated the patch, please help to review.

@wchevreuil

Copy link
Copy Markdown
Contributor

Thanks for the updates, @sunhelly ! LGTM for the latest commits, had already resolved the conversation about exception handler when retries exhausted. Can you share your thoughts on the remaining comments? Let me know if those make sense.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec24Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
+1test4tests0The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1mvninstall257master passed
+1compile24master passed
+1checkstyle12master passed
+1shadedjars266branch has no errors when building our shaded downstream artifacts.
+1findbugs40master passed
+1javadoc19master passed
_ Patch Compile Tests _
+1mvninstall241the patch passed
+1compile23the patch passed
+1javac23the patch passed
-1checkstyle11hbase-rsgroup: The patch generated 1 new + 2 unchanged - 0 fixed = 3 total (was 2)
+1whitespace0The patch has no whitespace issues.
+1shadedjars255patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck719Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1findbugs47the patch passed
+1javadoc19the patch passed
_ Other Tests _
+1unit260hbase-rsgroup in the patch passed.
+1asflicense12The patch does not generate ASF License warnings.
2545
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/12/artifact/out/Dockerfile
GITHUB PR#323
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 96360d1fd185 4.4.0-139-generic #165-Ubuntu SMP Wed Oct 24 10:58:50 UTC 2018 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / 9ac9505
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/12/artifact/out/diff-checkstyle-hbase-rsgroup.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/12/testReport/
Max. process+thread count4558 (vs. ulimit of 10000)
modulesC: hbase-rsgroup U: hbase-rsgroup
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/12/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
0reexec92Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
+1test4tests0The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1mvninstall246master passed
+1compile24master passed
+1checkstyle12master passed
+1shadedjars261branch has no errors when building our shaded downstream artifacts.
+1findbugs38master passed
+1javadoc17master passed
_ Patch Compile Tests _
+1mvninstall241the patch passed
+1compile24the patch passed
+1javac24the patch passed
+1checkstyle13the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedjars266patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck733Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1findbugs47the patch passed
+1javadoc20the patch passed
_ Other Tests _
+1unit261hbase-rsgroup in the patch passed.
+1asflicense11The patch does not generate ASF License warnings.
2618
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/13/artifact/out/Dockerfile
GITHUB PR#323
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux a80e00024408 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / 9ac9505
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/13/testReport/
Max. process+thread count4447 (vs. ulimit of 10000)
modulesC: hbase-rsgroup U: hbase-rsgroup
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/13/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@sunhelly

Copy link
Copy Markdown
ContributorAuthor

@wchevreuil I have replied on the remaining comments, and updated my patch again.

@wchevreuilwchevreuil left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sunhelly, latest changes look good. Had made some additional review comments, please share your thoughts on those once you have a chance.

@sunhelly

Copy link
Copy Markdown
ContributorAuthor

@wchevreuil I have updated the codes as replied in all the comments. Please review again.
But I waited @Apache-HBase to output the test results but there is none. I don't know why...

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
0reexec31Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
+1test4tests0The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1mvninstall246master passed
+1compile24master passed
+1checkstyle14master passed
+1shadedjars267branch has no errors when building our shaded downstream artifacts.
+1findbugs37master passed
+1javadoc20master passed
_ Patch Compile Tests _
+1mvninstall246the patch passed
+1compile24the patch passed
+1javac24the patch passed
+1checkstyle13the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedjars271patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck744Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1findbugs45the patch passed
+1javadoc17the patch passed
_ Other Tests _
+1unit282hbase-rsgroup in the patch passed.
+1asflicense9The patch does not generate ASF License warnings.
2603
SubsystemReport/Notes
DockerClient=18.09.7 Server=18.09.7 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/14/artifact/out/Dockerfile
GITHUB PR#323
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 592d4a8676a5 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / 438bf32
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/14/testReport/
Max. process+thread count4322 (vs. ulimit of 10000)
modulesC: hbase-rsgroup U: hbase-rsgroup
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/14/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

Pair<ServerName, RegionStateNode> gotPair = createTableAndSetARegionState(newGroup, 5);
try{
rsGroupAdmin.moveTables(Sets.newHashSet(tableName), newGroup.getName());
fail("move tables to group should fail");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit: let's mention the test expected a IOE that didn't happen.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I'll change the fail message to mention the expected exception.

@wchevreuil

Copy link
Copy Markdown
Contributor

Hi @sunhelly ! Latest changes looking great! Had just 3 more comments, all small nits. Let me know if you think those make sense, then I guess we'll be ready to push this PR.

@sunhelly

Copy link
Copy Markdown
ContributorAuthor

@wchevreuil Thanks for your comments, I have updated the patch.

@wchevreuil

Copy link
Copy Markdown
Contributor

Squashed commits locally, then pushed to master. Closing this PR now, thanks for contributing @sunhelly !

Sign up for freeto 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.

4 participants

@sunhelly@Apache-HBase@wchevreuil@xcangCRM