Skip to content

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

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

Closed
wants to merge 16 commits into from

Conversation

sunhelly
Copy link
Contributor

…ons on wrong rs

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Comment
0 reexec 180 Docker mode activated.
_ Prechecks _
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 mvninstall 342 master passed
+1 compile 31 master passed
+1 checkstyle 16 master passed
+1 shadedjars 335 branch has no errors when building our shaded downstream artifacts.
+1 findbugs 50 master passed
+1 javadoc 22 master passed
_ Patch Compile Tests _
+1 mvninstall 308 the patch passed
+1 compile 30 the patch passed
+1 javac 30 the patch passed
+1 checkstyle 15 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 337 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 967 Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 findbugs 57 the patch passed
+1 javadoc 24 the patch passed
_ Other Tests _
+1 unit 471 hbase-rsgroup in the patch passed.
+1 asflicense 12 The patch does not generate ASF License warnings.
3589
Subsystem Report/Notes
Docker Client=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 Tests dupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux fa1dda8fc2b5 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 GNU/Linux
Build tool maven
Personality /testptch/patchprocess/precommit/personality/provided.sh
git revision master / ac3d09e
maven version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java 1.8.0_181
findbugs v3.1.11
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/1/testReport/
Max. process+thread count 4517 (vs. ulimit of 10000)
modules C: hbase-rsgroup U: hbase-rsgroup
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/1/console
Powered by Apache 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
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
Contributor Author

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
Contributor Author

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.

@@ -459,4 +463,197 @@ public boolean evaluate() throws Exception {
Assert.assertEquals(null, rsGroupAdmin.getRSGroupInfo(fooGroup.getName()));
}

@Test
public void testFailedMoveWhenMoveServer() throws Exception {
final RSGroupInfo newGroup = addGroup(getGroupName(name.getMethodName()), 1);
Copy link
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
Contributor Author

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
Contributor Author

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
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
Contributor Author

Choose a reason for hiding this comment

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

Yes.

Copy link
Contributor Author

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
Contributor Author

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
Contributor Author

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

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 173 Docker mode activated.
_ Prechecks _
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1 mvninstall 326 master passed
+1 compile 30 master passed
+1 checkstyle 15 master passed
+1 shadedjars 344 branch has no errors when building our shaded downstream artifacts.
+1 findbugs 56 master passed
+1 javadoc 23 master passed
_ Patch Compile Tests _
+1 mvninstall 307 the patch passed
+1 compile 31 the patch passed
+1 javac 31 the patch passed
-1 checkstyle 14 hbase-rsgroup: The patch generated 5 new + 2 unchanged - 0 fixed = 7 total (was 2)
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 337 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 914 Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 findbugs 58 the patch passed
+1 javadoc 24 the patch passed
_ Other Tests _
+1 unit 589 hbase-rsgroup in the patch passed.
+1 asflicense 12 The patch does not generate ASF License warnings.
3638
Subsystem Report/Notes
Docker Client=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 Tests dupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 39f7ce41a087 4.4.0-143-generic #169-Ubuntu SMP Thu Feb 7 07:56:38 UTC 2019 x86_64 GNU/Linux
Build tool maven
Personality /testptch/patchprocess/precommit/personality/provided.sh
git revision master / 9aee88e
maven version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java 1.8.0_181
findbugs v3.1.11
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/2/artifact/out/diff-checkstyle-hbase-rsgroup.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/2/testReport/
Max. process+thread count 4609 (vs. ulimit of 10000)
modules C: hbase-rsgroup U: hbase-rsgroup
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/2/console
Powered by Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 45 Docker mode activated.
_ Prechecks _
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1 mvninstall 304 master passed
+1 compile 30 master passed
+1 checkstyle 15 master passed
+1 shadedjars 335 branch has no errors when building our shaded downstream artifacts.
+1 findbugs 48 master passed
+1 javadoc 24 master passed
_ Patch Compile Tests _
+1 mvninstall 301 the patch passed
+1 compile 30 the patch passed
+1 javac 30 the patch passed
-1 checkstyle 15 hbase-rsgroup: The patch generated 1 new + 2 unchanged - 0 fixed = 3 total (was 2)
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 336 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 944 Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 findbugs 60 the patch passed
+1 javadoc 24 the patch passed
_ Other Tests _
+1 unit 586 hbase-rsgroup in the patch passed.
+1 asflicense 12 The patch does not generate ASF License warnings.
3486
Subsystem Report/Notes
Docker Client=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 Tests dupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 99dd734acf2d 4.4.0-143-generic #169-Ubuntu SMP Thu Feb 7 07:56:38 UTC 2019 x86_64 GNU/Linux
Build tool maven
Personality /testptch/patchprocess/precommit/personality/provided.sh
git revision master / 9aee88e
maven version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java 1.8.0_181
findbugs v3.1.11
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/3/artifact/out/diff-checkstyle-hbase-rsgroup.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/3/testReport/
Max. process+thread count 4562 (vs. ulimit of 10000)
modules C: hbase-rsgroup U: hbase-rsgroup
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/3/console
Powered by Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Comment
0 reexec 166 Docker mode activated.
_ Prechecks _
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1 mvninstall 268 master passed
+1 compile 25 master passed
+1 checkstyle 13 master passed
+1 shadedjars 277 branch has no errors when building our shaded downstream artifacts.
+1 findbugs 41 master passed
+1 javadoc 20 master passed
_ Patch Compile Tests _
+1 mvninstall 234 the patch passed
+1 compile 24 the patch passed
+1 javac 24 the patch passed
+1 checkstyle 12 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 261 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 746 Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 findbugs 47 the patch passed
+1 javadoc 20 the patch passed
_ Other Tests _
+1 unit 473 hbase-rsgroup in the patch passed.
+1 asflicense 11 The patch does not generate ASF License warnings.
2963
Subsystem Report/Notes
Docker Client=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 Tests dupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 4c3c5d4074ee 4.4.0-137-generic #163-Ubuntu SMP Mon Sep 24 13:14:43 UTC 2018 x86_64 GNU/Linux
Build tool maven
Personality /testptch/patchprocess/precommit/personality/provided.sh
git revision master / c1e5350
maven version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java 1.8.0_181
findbugs v3.1.11
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/4/testReport/
Max. process+thread count 4437 (vs. ulimit of 10000)
modules C: hbase-rsgroup U: hbase-rsgroup
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/4/console
Powered by Apache 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
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
Contributor Author

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
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
Contributor Author

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
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
Contributor Author

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

🎊 +1 overall

Vote Subsystem Runtime Comment
0 reexec 46 Docker mode activated.
_ Prechecks _
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1 mvninstall 248 master passed
+1 compile 24 master passed
+1 checkstyle 13 master passed
+1 shadedjars 279 branch has no errors when building our shaded downstream artifacts.
+1 findbugs 36 master passed
+1 javadoc 18 master passed
_ Patch Compile Tests _
+1 mvninstall 235 the patch passed
+1 compile 23 the patch passed
+1 javac 23 the patch passed
+1 checkstyle 12 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 264 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 750 Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 findbugs 46 the patch passed
+1 javadoc 20 the patch passed
_ Other Tests _
+1 unit 462 hbase-rsgroup in the patch passed.
+1 asflicense 11 The patch does not generate ASF License warnings.
2797
Subsystem Report/Notes
Docker Client=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 Tests dupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux b83c99414e23 4.4.0-137-generic #163-Ubuntu SMP Mon Sep 24 13:14:43 UTC 2018 x86_64 GNU/Linux
Build tool maven
Personality /testptch/patchprocess/precommit/personality/provided.sh
git revision master / 0198868
maven version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java 1.8.0_181
findbugs v3.1.11
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/5/testReport/
Max. process+thread count 4453 (vs. ulimit of 10000)
modules C: hbase-rsgroup U: hbase-rsgroup
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/5/console
Powered by Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

Copy link
Contributor

@wchevreuil wchevreuil left a comment

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
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

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 194 Docker mode activated.
_ Prechecks _
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1 mvninstall 274 master passed
+1 compile 25 master passed
+1 checkstyle 13 master passed
+1 shadedjars 290 branch has no errors when building our shaded downstream artifacts.
+1 findbugs 39 master passed
+1 javadoc 20 master passed
_ Patch Compile Tests _
+1 mvninstall 265 the patch passed
+1 compile 25 the patch passed
+1 javac 25 the patch passed
-1 checkstyle 12 hbase-rsgroup: The patch generated 1 new + 2 unchanged - 0 fixed = 3 total (was 2)
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 291 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 833 Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 findbugs 46 the patch passed
+1 javadoc 19 the patch passed
_ Other Tests _
+1 unit 372 hbase-rsgroup in the patch passed.
+1 asflicense 11 The patch does not generate ASF License warnings.
3055
Subsystem Report/Notes
Docker Client=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 Tests dupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux b89c23d7d145 4.15.0-52-generic #56-Ubuntu SMP Tue Jun 4 22:49:08 UTC 2019 x86_64 GNU/Linux
Build tool maven
Personality /testptch/patchprocess/precommit/personality/provided.sh
git revision master / 0c8dc5d
maven version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java 1.8.0_181
findbugs v3.1.11
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/6/artifact/out/diff-checkstyle-hbase-rsgroup.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/6/testReport/
Max. process+thread count 4460 (vs. ulimit of 10000)
modules C: hbase-rsgroup U: hbase-rsgroup
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/6/console
Powered by Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@sunhelly
Copy link
Contributor Author

sunhelly commented Jul 2, 2019

@wchevreuil I agree with you.

@wchevreuil
Copy link
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

🎊 +1 overall

Vote Subsystem Runtime Comment
0 reexec 165 Docker mode activated.
_ Prechecks _
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1 mvninstall 316 master passed
+1 compile 30 master passed
+1 checkstyle 16 master passed
+1 shadedjars 329 branch has no errors when building our shaded downstream artifacts.
+1 findbugs 49 master passed
+1 javadoc 23 master passed
_ Patch Compile Tests _
+1 mvninstall 301 the patch passed
+1 compile 30 the patch passed
+1 javac 30 the patch passed
+1 checkstyle 15 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 343 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 935 Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 findbugs 59 the patch passed
+1 javadoc 23 the patch passed
_ Other Tests _
+1 unit 590 hbase-rsgroup in the patch passed.
+1 asflicense 13 The patch does not generate ASF License warnings.
3619
Subsystem Report/Notes
Docker Client=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 Tests dupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux bda5627009f8 4.4.0-143-generic #169-Ubuntu SMP Thu Feb 7 07:56:38 UTC 2019 x86_64 GNU/Linux
Build tool maven
Personality /testptch/patchprocess/precommit/personality/provided.sh
git revision master / 62c7e73
maven version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java 1.8.0_181
findbugs v3.1.11
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/7/testReport/
Max. process+thread count 4670 (vs. ulimit of 10000)
modules C: hbase-rsgroup U: hbase-rsgroup
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/7/console
Powered by Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 157 Docker mode activated.
_ Prechecks _
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1 mvninstall 251 master passed
+1 compile 25 master passed
+1 checkstyle 13 master passed
+1 shadedjars 281 branch has no errors when building our shaded downstream artifacts.
+1 findbugs 40 master passed
+1 javadoc 19 master passed
_ Patch Compile Tests _
+1 mvninstall 251 the patch passed
+1 compile 24 the patch passed
+1 javac 24 the patch passed
+1 checkstyle 12 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 262 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 727 Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 findbugs 47 the patch passed
+1 javadoc 20 the patch passed
_ Other Tests _
-1 unit 608 hbase-rsgroup in the patch failed.
+1 asflicense 11 The patch does not generate ASF License warnings.
3069
Reason Tests
Failed junit tests hadoop.hbase.rsgroup.TestRSGroupsAdmin1
Subsystem Report/Notes
Docker Client=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 Tests dupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 688c3a55e88d 4.4.0-137-generic #163-Ubuntu SMP Mon Sep 24 13:14:43 UTC 2018 x86_64 GNU/Linux
Build tool maven
Personality /testptch/patchprocess/precommit/personality/provided.sh
git revision master / 605f8a1
maven version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java 1.8.0_181
findbugs v3.1.11
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/8/artifact/out/patch-unit-hbase-rsgroup.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/8/testReport/
Max. process+thread count 4591 (vs. ulimit of 10000)
modules C: hbase-rsgroup U: hbase-rsgroup
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/8/console
Powered by Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 170 Docker mode activated.
_ Prechecks _
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1 mvninstall 324 master passed
+1 compile 31 master passed
+1 checkstyle 14 master passed
+1 shadedjars 334 branch has no errors when building our shaded downstream artifacts.
+1 findbugs 50 master passed
+1 javadoc 24 master passed
_ Patch Compile Tests _
+1 mvninstall 305 the patch passed
+1 compile 30 the patch passed
+1 javac 30 the patch passed
-1 checkstyle 15 hbase-rsgroup: The patch generated 9 new + 2 unchanged - 0 fixed = 11 total (was 2)
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 332 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 956 Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 findbugs 59 the patch passed
+1 javadoc 24 the patch passed
_ Other Tests _
+1 unit 485 hbase-rsgroup in the patch passed.
+1 asflicense 11 The patch does not generate ASF License warnings.
3565
Subsystem Report/Notes
Docker Client=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 Tests dupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux faf329789726 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 GNU/Linux
Build tool maven
Personality /testptch/patchprocess/precommit/personality/provided.sh
git revision master / 605f8a1
maven version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java 1.8.0_181
findbugs v3.1.11
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/9/artifact/out/diff-checkstyle-hbase-rsgroup.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/9/testReport/
Max. process+thread count 4618 (vs. ulimit of 10000)
modules C: hbase-rsgroup U: hbase-rsgroup
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/9/console
Powered by Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 163 Docker mode activated.
_ Prechecks _
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1 mvninstall 308 master passed
+1 compile 29 master passed
+1 checkstyle 14 master passed
+1 shadedjars 334 branch has no errors when building our shaded downstream artifacts.
+1 findbugs 47 master passed
+1 javadoc 23 master passed
_ Patch Compile Tests _
+1 mvninstall 306 the patch passed
+1 compile 30 the patch passed
+1 javac 30 the patch passed
-1 checkstyle 15 hbase-rsgroup: The patch generated 28 new + 2 unchanged - 0 fixed = 30 total (was 2)
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 353 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 1013 Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 findbugs 62 the patch passed
+1 javadoc 23 the patch passed
_ Other Tests _
+1 unit 531 hbase-rsgroup in the patch passed.
+1 asflicense 12 The patch does not generate ASF License warnings.
3681
Subsystem Report/Notes
Docker Client=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 Tests dupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 82d5a8ad84e9 4.4.0-143-generic #169-Ubuntu SMP Thu Feb 7 07:56:38 UTC 2019 x86_64 GNU/Linux
Build tool maven
Personality /testptch/patchprocess/precommit/personality/provided.sh
git revision master / 605f8a1
maven version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java 1.8.0_181
findbugs v3.1.11
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/10/artifact/out/diff-checkstyle-hbase-rsgroup.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/10/testReport/
Max. process+thread count 4423 (vs. ulimit of 10000)
modules C: hbase-rsgroup U: hbase-rsgroup
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/10/console
Powered by Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Comment
0 reexec 62 Docker mode activated.
_ Prechecks _
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1 mvninstall 293 master passed
+1 compile 22 master passed
+1 checkstyle 11 master passed
+1 shadedjars 289 branch has no errors when building our shaded downstream artifacts.
+1 findbugs 45 master passed
+1 javadoc 20 master passed
_ Patch Compile Tests _
+1 mvninstall 264 the patch passed
+1 compile 24 the patch passed
+1 javac 24 the patch passed
+1 checkstyle 13 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 290 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 853 Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 findbugs 46 the patch passed
+1 javadoc 21 the patch passed
_ Other Tests _
+1 unit 635 hbase-rsgroup in the patch passed.
+1 asflicense 11 The patch does not generate ASF License warnings.
3214
Subsystem Report/Notes
Docker Client=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 Tests dupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 84c183858ba1 4.4.0-137-generic #163-Ubuntu SMP Mon Sep 24 13:14:43 UTC 2018 x86_64 GNU/Linux
Build tool maven
Personality /testptch/patchprocess/precommit/personality/provided.sh
git revision master / 605f8a1
maven version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java 1.8.0_181
findbugs v3.1.11
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/11/testReport/
Max. process+thread count 4298 (vs. ulimit of 10000)
modules C: hbase-rsgroup U: hbase-rsgroup
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/11/console
Powered by Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@sunhelly
Copy link
Contributor Author

sunhelly commented Jul 9, 2019

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

@wchevreuil
Copy link
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

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 24 Docker mode activated.
_ Prechecks _
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1 mvninstall 257 master passed
+1 compile 24 master passed
+1 checkstyle 12 master passed
+1 shadedjars 266 branch has no errors when building our shaded downstream artifacts.
+1 findbugs 40 master passed
+1 javadoc 19 master passed
_ Patch Compile Tests _
+1 mvninstall 241 the patch passed
+1 compile 23 the patch passed
+1 javac 23 the patch passed
-1 checkstyle 11 hbase-rsgroup: The patch generated 1 new + 2 unchanged - 0 fixed = 3 total (was 2)
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 255 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 719 Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 findbugs 47 the patch passed
+1 javadoc 19 the patch passed
_ Other Tests _
+1 unit 260 hbase-rsgroup in the patch passed.
+1 asflicense 12 The patch does not generate ASF License warnings.
2545
Subsystem Report/Notes
Docker Client=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 Tests dupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 96360d1fd185 4.4.0-139-generic #165-Ubuntu SMP Wed Oct 24 10:58:50 UTC 2018 x86_64 GNU/Linux
Build tool maven
Personality /testptch/patchprocess/precommit/personality/provided.sh
git revision master / 9ac9505
maven version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java 1.8.0_181
findbugs v3.1.11
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/12/artifact/out/diff-checkstyle-hbase-rsgroup.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/12/testReport/
Max. process+thread count 4558 (vs. ulimit of 10000)
modules C: hbase-rsgroup U: hbase-rsgroup
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/12/console
Powered by Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Comment
0 reexec 92 Docker mode activated.
_ Prechecks _
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1 mvninstall 246 master passed
+1 compile 24 master passed
+1 checkstyle 12 master passed
+1 shadedjars 261 branch has no errors when building our shaded downstream artifacts.
+1 findbugs 38 master passed
+1 javadoc 17 master passed
_ Patch Compile Tests _
+1 mvninstall 241 the patch passed
+1 compile 24 the patch passed
+1 javac 24 the patch passed
+1 checkstyle 13 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 266 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 733 Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 findbugs 47 the patch passed
+1 javadoc 20 the patch passed
_ Other Tests _
+1 unit 261 hbase-rsgroup in the patch passed.
+1 asflicense 11 The patch does not generate ASF License warnings.
2618
Subsystem Report/Notes
Docker Client=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 Tests dupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux a80e00024408 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 GNU/Linux
Build tool maven
Personality /testptch/patchprocess/precommit/personality/provided.sh
git revision master / 9ac9505
maven version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java 1.8.0_181
findbugs v3.1.11
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/13/testReport/
Max. process+thread count 4447 (vs. ulimit of 10000)
modules C: hbase-rsgroup U: hbase-rsgroup
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/13/console
Powered by Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@sunhelly
Copy link
Contributor Author

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

Copy link
Contributor

@wchevreuil wchevreuil left a comment

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
Contributor Author

@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

🎊 +1 overall

Vote Subsystem Runtime Comment
0 reexec 31 Docker mode activated.
_ Prechecks _
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+1 mvninstall 246 master passed
+1 compile 24 master passed
+1 checkstyle 14 master passed
+1 shadedjars 267 branch has no errors when building our shaded downstream artifacts.
+1 findbugs 37 master passed
+1 javadoc 20 master passed
_ Patch Compile Tests _
+1 mvninstall 246 the patch passed
+1 compile 24 the patch passed
+1 javac 24 the patch passed
+1 checkstyle 13 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 271 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 744 Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 findbugs 45 the patch passed
+1 javadoc 17 the patch passed
_ Other Tests _
+1 unit 282 hbase-rsgroup in the patch passed.
+1 asflicense 9 The patch does not generate ASF License warnings.
2603
Subsystem Report/Notes
Docker Client=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 Tests dupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 592d4a8676a5 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 GNU/Linux
Build tool maven
Personality /testptch/patchprocess/precommit/personality/provided.sh
git revision master / 438bf32
maven version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java 1.8.0_181
findbugs v3.1.11
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/14/testReport/
Max. process+thread count 4322 (vs. ulimit of 10000)
modules C: hbase-rsgroup U: hbase-rsgroup
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-323/14/console
Powered by Apache 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
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
Contributor Author

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
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
Contributor Author

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

@wchevreuil
Copy link
Contributor

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

@wchevreuil wchevreuil closed this Jul 15, 2019
Sign up for free to 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