Skip to content

HBASE-24112 [RSGroup] Support renaming rsgroup - #1435

Merged
Reidddddd merged 5 commits into
apache:masterfrom
Reidddddd:rename-rsgroup
Apr 13, 2020
Merged

HBASE-24112 [RSGroup] Support renaming rsgroup#1435
Reidddddd merged 5 commits into
apache:masterfrom
Reidddddd:rename-rsgroup

Conversation

@Reidddddd

Copy link
Copy Markdown
Contributor

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 32sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗prototool0m 0sprototool was not available.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
_ master Compile Tests _
+0 🆗mvndep0m 36sMaven dependency ordering for branch
+1 💚mvninstall5m 16smaster passed
+1 💚checkstyle2m 58smaster passed
+1 💚spotbugs8m 7smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 14sMaven dependency ordering for patch
+1 💚mvninstall5m 1sthe patch passed
-0 ⚠️checkstyle0m 28shbase-client: The patch generated 1 new + 37 unchanged - 0 fixed = 38 total (was 37)
-0 ⚠️checkstyle1m 7shbase-server: The patch generated 1 new + 39 unchanged - 0 fixed = 40 total (was 39)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚hadoopcheck10m 31sPatch does not cause any errors with Hadoop 2.10.0 or 3.1.2.
+1 💚hbaseprotoc2m 55sthe patch passed
+1 💚spotbugs8m 54sthe patch passed
_ Other Tests _
+1 💚asflicense1m 1sThe patch does not generate ASF License warnings.
56m 35s
SubsystemReport/Notes
DockerClient=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1435
Optional Testsdupname asflicense spotbugs hadoopcheck hbaseanti checkstyle cc hbaseprotoc prototool
unameLinux 45e49cedaa66 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / ea69b87
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/artifact/yetus-general-check/output/diff-checkstyle-hbase-client.txt
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/artifact/yetus-general-check/output/diff-checkstyle-hbase-server.txt
Max. process+thread count93 (vs. ulimit of 10000)
modulesC: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/console
versionsgit=2.17.1 maven=2018-06-17T18:33:14Z) spotbugs=3.1.12
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 36sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 35sMaven dependency ordering for branch
+1 💚mvninstall5m 53smaster passed
+1 💚compile3m 21smaster passed
+1 💚shadedjars5m 25sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc2m 5smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 14sMaven dependency ordering for patch
+1 💚mvninstall5m 48sthe patch passed
+1 💚compile3m 12sthe patch passed
+1 💚javac3m 12sthe patch passed
+1 💚shadedjars5m 22spatch has no errors when building our shaded downstream artifacts.
+1 💚javadoc2m 10sthe patch passed
_ Other Tests _
+1 💚unit0m 47shbase-protocol-shaded in the patch passed.
+1 💚unit1m 27shbase-common in the patch passed.
+1 💚unit1m 7shbase-client in the patch passed.
+1 💚unit188m 15shbase-server in the patch passed.
+1 💚unit3m 45shbase-thrift in the patch passed.
232m 15s
SubsystemReport/Notes
DockerClient=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile
GITHUB PR#1435
Optional Testsjavac javadoc unit shadedjars compile
unameLinux 0017c153e890 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / ea69b87
Default Java1.8.0_232
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/testReport/
Max. process+thread count2564 (vs. ulimit of 10000)
modulesC: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/console
versionsgit=2.17.1 maven=2018-06-17T18:33:14Z)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 35sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 33sMaven dependency ordering for branch
+1 💚mvninstall7m 6smaster passed
+1 💚compile4m 13smaster passed
+1 💚shadedjars6m 23sbranch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 17shbase-common in master failed.
-0 ⚠️javadoc0m 27shbase-client in master failed.
-0 ⚠️javadoc0m 45shbase-server in master failed.
-0 ⚠️javadoc1m 0shbase-thrift in master failed.
_ Patch Compile Tests _
+0 🆗mvndep0m 15sMaven dependency ordering for patch
+1 💚mvninstall6m 51sthe patch passed
+1 💚compile4m 1sthe patch passed
+1 💚javac4m 1sthe patch passed
+1 💚shadedjars6m 43spatch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 20shbase-common in the patch failed.
-0 ⚠️javadoc0m 32shbase-client in the patch failed.
-0 ⚠️javadoc0m 52shbase-server in the patch failed.
-0 ⚠️javadoc1m 15shbase-thrift in the patch failed.
_ Other Tests _
+1 💚unit1m 14shbase-protocol-shaded in the patch passed.
+1 💚unit2m 10shbase-common in the patch passed.
+1 💚unit1m 35shbase-client in the patch passed.
+1 💚unit188m 42shbase-server in the patch passed.
+1 💚unit3m 45shbase-thrift in the patch passed.
242m 24s
SubsystemReport/Notes
DockerClient=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#1435
Optional Testsjavac javadoc unit shadedjars compile
unameLinux fb14c80f65b1 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / ea69b87
Default Java2020-01-14
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-common.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-client.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-server.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-thrift.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-common.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-client.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-server.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-thrift.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/testReport/
Max. process+thread count2811 (vs. ulimit of 10000)
modulesC: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/console
versionsgit=2.17.1 maven=2018-06-17T18:33:14Z)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@virajjasanivirajjasani 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.

Should we provide shell command for rename? Or maybe pass some attributes to existing rsgroup create command to indicate it is rename call? Or as of now Admin API is enough?

}

@Override
public CompletableFuture<Void> renameRSGroup(String oldName, String newName) {

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.

Would you like to provide any validation for both strings? e.g. non-empty

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 it is ok to leave it as it is, server side will throw ConstraintException if both are empty. Other methods like addRSGroup neither checks non-empty.

Map<String, RSGroupInfo> newGroupMap = Maps.newHashMap(rsGroupMap);
newGroupMap.remove(oldRSG.getName());
RSGroupInfo newRSG = new RSGroupInfo(newName, oldRSG.getServers());
newGroupMap.put(newRSG.getName(), newRSG);

@virajjasanivirajjasaniApr 5, 2020

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.

nit: simplify to newGroupMap.put(newName, newRSG); ?

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.

fixed

TableName tb = TableName.valueOf("testRename");
TEST_UTIL.createTable(tb, "tr");
ADMIN.setRSGroup(Sets.newHashSet(tb), oldgroup.getName());
Thread.sleep(500);

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.

Instead of sleep(), we can use HBASE_TESTING_UTILITY.waitFor:
e.g.

HBASE_TESTING_UTILITY.waitFor(1000,
() -> {
oldgroup = ADMIN.getRSGroup(oldgroup.getName());
return oldgroup.getServers().size() == 2 && ADMIN.getRSGroup(tb).getName().equals(oldgroup.getName());
});

This way we will ensure, we wait for specific period of time until our predicate returns true.

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.

fixed

match++;
}
}
assertEquals(servers.size(), match);

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 redundant assert? assertEquals(servers.size(), newgroup.getServers().size()); is already taking care of 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.

The for loop above is to check the servers are exactly the same before renaming. And the match is the number of 「exactly the same」. Not redundant regarding to its purpose.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes I agree this is useful assertion.

Actually I was wondering if we can add more context to this test as well as assertions. For example, we create and assign another table to another rsgroup. So the "if" clause checking rsgroup name in RSGroupInfoManagerImpl.java will get tested. Otherwise this test may still pass even when we remove the "if". By the "if" I mean:

if (rsgroup.get().equals(oldName)) {
updateTables.add(table.getValue().getTableName());
}

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.

Get your idea. Fixed in new commit.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes the test now is very comprehensive. Thanks,

@Reidddddd

Copy link
Copy Markdown
ContributorAuthor

Plan to do the shell command in a separate JIRA, to make backport easier.

private final SortedSet<Address> servers;
// Keep tables sorted too.

// TODO: Don't understand why all these should be deprecated. we have table -> rsgroup mapping.

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.

Because we do not store the table informations in RSGroupInfo anymore, if you use the new API to get RSGroupInfo, the tables will always be empty.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec3m 59sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗prototool0m 0sprototool was not available.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
_ master Compile Tests _
+0 🆗mvndep0m 35sMaven dependency ordering for branch
+1 💚mvninstall5m 17smaster passed
+1 💚checkstyle2m 56smaster passed
+1 💚spotbugs8m 12smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 13sMaven dependency ordering for patch
+1 💚mvninstall4m 59sthe patch passed
-0 ⚠️checkstyle0m 29shbase-client: The patch generated 1 new + 37 unchanged - 0 fixed = 38 total (was 37)
-0 ⚠️checkstyle1m 6shbase-server: The patch generated 1 new + 39 unchanged - 0 fixed = 40 total (was 39)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚hadoopcheck10m 10sPatch does not cause any errors with Hadoop 2.10.0 or 3.1.2.
+1 💚hbaseprotoc2m 47sthe patch passed
+1 💚spotbugs9m 0sthe patch passed
_ Other Tests _
+1 💚asflicense1m 1sThe patch does not generate ASF License warnings.
59m 40s
SubsystemReport/Notes
DockerClient=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1435
Optional Testsdupname asflicense spotbugs hadoopcheck hbaseanti checkstyle cc hbaseprotoc prototool
unameLinux 0177e50cbb9b 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 740e937
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/artifact/yetus-general-check/output/diff-checkstyle-hbase-client.txt
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/artifact/yetus-general-check/output/diff-checkstyle-hbase-server.txt
Max. process+thread count93 (vs. ulimit of 10000)
modulesC: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f) spotbugs=3.1.12
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 27sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 30sMaven dependency ordering for branch
+1 💚mvninstall5m 53smaster passed
+1 💚compile3m 5smaster passed
+1 💚shadedjars5m 6sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc2m 1smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 13sMaven dependency ordering for patch
+1 💚mvninstall5m 35sthe patch passed
+1 💚compile3m 2sthe patch passed
+1 💚javac3m 2sthe patch passed
+1 💚shadedjars5m 0spatch has no errors when building our shaded downstream artifacts.
+1 💚javadoc2m 11sthe patch passed
_ Other Tests _
+1 💚unit0m 49shbase-protocol-shaded in the patch passed.
+1 💚unit1m 27shbase-common in the patch passed.
+1 💚unit1m 4shbase-client in the patch passed.
+1 💚unit190m 1shbase-server in the patch passed.
+1 💚unit3m 33shbase-thrift in the patch passed.
232m 28s
SubsystemReport/Notes
DockerClient=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile
GITHUB PR#1435
Optional Testsjavac javadoc unit shadedjars compile
unameLinux 0efce857ad0e 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 740e937
Default Java1.8.0_232
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/testReport/
Max. process+thread count2590 (vs. ulimit of 10000)
modulesC: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 29sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 29sMaven dependency ordering for branch
+1 💚mvninstall7m 4smaster passed
+1 💚compile4m 3smaster passed
+1 💚shadedjars5m 55sbranch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 17shbase-common in master failed.
-0 ⚠️javadoc0m 27shbase-client in master failed.
-0 ⚠️javadoc0m 43shbase-server in master failed.
-0 ⚠️javadoc0m 59shbase-thrift in master failed.
_ Patch Compile Tests _
+0 🆗mvndep0m 13sMaven dependency ordering for patch
+1 💚mvninstall6m 50sthe patch passed
+1 💚compile3m 56sthe patch passed
+1 💚javac3m 56sthe patch passed
+1 💚shadedjars6m 9spatch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 20shbase-common in the patch failed.
-0 ⚠️javadoc0m 32shbase-client in the patch failed.
-0 ⚠️javadoc0m 53shbase-server in the patch failed.
-0 ⚠️javadoc1m 14shbase-thrift in the patch failed.
_ Other Tests _
+1 💚unit1m 13shbase-protocol-shaded in the patch passed.
+1 💚unit2m 8shbase-common in the patch passed.
+1 💚unit1m 34shbase-client in the patch passed.
+1 💚unit191m 4shbase-server in the patch passed.
+1 💚unit3m 37shbase-thrift in the patch passed.
243m 15s
SubsystemReport/Notes
DockerClient=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#1435
Optional Testsjavac javadoc unit shadedjars compile
unameLinux 64219c3970bd 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 740e937
Default Java2020-01-14
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-common.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-client.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-server.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-thrift.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-common.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-client.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-server.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-thrift.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/testReport/
Max. process+thread count2569 (vs. ulimit of 10000)
modulesC: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 30sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗prototool0m 0sprototool was not available.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
_ master Compile Tests _
+0 🆗mvndep0m 21sMaven dependency ordering for branch
+1 💚mvninstall5m 0smaster passed
+1 💚checkstyle2m 52smaster passed
+1 💚spotbugs8m 4smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 12sMaven dependency ordering for patch
+1 💚mvninstall4m 53sthe patch passed
-0 ⚠️checkstyle0m 29shbase-client: The patch generated 1 new + 37 unchanged - 0 fixed = 38 total (was 37)
-0 ⚠️checkstyle1m 7shbase-server: The patch generated 1 new + 39 unchanged - 0 fixed = 40 total (was 39)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚hadoopcheck10m 23sPatch does not cause any errors with Hadoop 2.10.0 or 3.1.2.
+1 💚hbaseprotoc2m 44sthe patch passed
+1 💚spotbugs9m 2sthe patch passed
_ Other Tests _
+1 💚asflicense1m 0sThe patch does not generate ASF License warnings.
55m 40s
SubsystemReport/Notes
DockerClient=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1435
Optional Testsdupname asflicense spotbugs hadoopcheck hbaseanti checkstyle cc hbaseprotoc prototool
unameLinux d9413a15f307 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 740e937
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-general-check/output/diff-checkstyle-hbase-client.txt
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-general-check/output/diff-checkstyle-hbase-server.txt
Max. process+thread count93 (vs. ulimit of 10000)
modulesC: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f) spotbugs=3.1.12
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 28sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 13sMaven dependency ordering for branch
+1 💚mvninstall5m 33smaster passed
+1 💚compile3m 9smaster passed
+1 💚shadedjars5m 9sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc2m 3smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 13sMaven dependency ordering for patch
+1 💚mvninstall5m 37sthe patch passed
+1 💚compile3m 4sthe patch passed
+1 💚javac3m 4sthe patch passed
+1 💚shadedjars5m 3spatch has no errors when building our shaded downstream artifacts.
+1 💚javadoc2m 10sthe patch passed
_ Other Tests _
+1 💚unit0m 47shbase-protocol-shaded in the patch passed.
+1 💚unit1m 26shbase-common in the patch passed.
+1 💚unit1m 4shbase-client in the patch passed.
+1 💚unit189m 57shbase-server in the patch passed.
+1 💚unit3m 42shbase-thrift in the patch passed.
232m 3s
SubsystemReport/Notes
DockerClient=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile
GITHUB PR#1435
Optional Testsjavac javadoc unit shadedjars compile
unameLinux 1294cecdb5ad 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 740e937
Default Java1.8.0_232
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/testReport/
Max. process+thread count2548 (vs. ulimit of 10000)
modulesC: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 28sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 12sMaven dependency ordering for branch
+1 💚mvninstall6m 43smaster passed
+1 💚compile4m 1smaster passed
+1 💚shadedjars5m 58sbranch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 17shbase-common in master failed.
-0 ⚠️javadoc0m 28shbase-client in master failed.
-0 ⚠️javadoc0m 45shbase-server in master failed.
-0 ⚠️javadoc1m 0shbase-thrift in master failed.
_ Patch Compile Tests _
+0 🆗mvndep0m 13sMaven dependency ordering for patch
+1 💚mvninstall6m 46sthe patch passed
+1 💚compile3m 51sthe patch passed
+1 💚javac3m 51sthe patch passed
+1 💚shadedjars6m 9spatch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 20shbase-common in the patch failed.
-0 ⚠️javadoc0m 32shbase-client in the patch failed.
-0 ⚠️javadoc0m 51shbase-server in the patch failed.
-0 ⚠️javadoc1m 16shbase-thrift in the patch failed.
_ Other Tests _
+1 💚unit1m 16shbase-protocol-shaded in the patch passed.
+1 💚unit2m 8shbase-common in the patch passed.
+1 💚unit1m 36shbase-client in the patch passed.
-1 ❌unit193m 34shbase-server in the patch failed.
+1 💚unit3m 36shbase-thrift in the patch passed.
244m 53s
SubsystemReport/Notes
DockerClient=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#1435
Optional Testsjavac javadoc unit shadedjars compile
unameLinux 86f14a241aa0 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 740e937
Default Java2020-01-14
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-common.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-client.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-server.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-thrift.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-common.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-client.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-server.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-thrift.txt
unithttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-jdk11-hadoop3-check/output/patch-unit-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/testReport/
Max. process+thread count2638 (vs. ulimit of 10000)
modulesC: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache9

Copy link
Copy Markdown
Contributor

I do not think a green UT result can reduce the concern on the 'unexepcted behavior'. It does not happen now does mean it will not happen in the future.

The root problem here, is that, after the renaming, the TableDescriptor at RS side still reference the old name, if we write some code at RS side that retrieve this value and do something, we may be in trouble.

@Reidddddd

Copy link
Copy Markdown
ContributorAuthor

Get it. It means only reopening the regions can get the most updated TD on RS side in this case.

What's your suggestion to this concern?

@Apache9

Copy link
Copy Markdown
Contributor

Get it. It means only reopening the regions can get the most updated TD on RS side in this case.

What's your suggestion to this concern?

I do not have an idea yet. Maybe we could find a way to update the table descriptor for a region at RS side without reopening it?

@Reidddddd

Reidddddd commented Apr 7, 2020

Copy link
Copy Markdown
ContributorAuthor

Just rolled back to the previous version, the one using setRSGroups. It is the appropriate & right approach by now.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 30sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗prototool0m 0sprototool was not available.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
_ master Compile Tests _
+0 🆗mvndep0m 22sMaven dependency ordering for branch
+1 💚mvninstall4m 55smaster passed
+1 💚checkstyle2m 50smaster passed
+1 💚spotbugs7m 52smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 13sMaven dependency ordering for patch
+1 💚mvninstall4m 57sthe patch passed
-0 ⚠️checkstyle0m 28shbase-client: The patch generated 1 new + 37 unchanged - 0 fixed = 38 total (was 37)
-0 ⚠️checkstyle1m 7shbase-server: The patch generated 1 new + 39 unchanged - 0 fixed = 40 total (was 39)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚hadoopcheck10m 22sPatch does not cause any errors with Hadoop 2.10.0 or 3.1.2.
+1 💚hbaseprotoc2m 46sthe patch passed
+1 💚spotbugs8m 46sthe patch passed
_ Other Tests _
+1 💚asflicense1m 0sThe patch does not generate ASF License warnings.
54m 58s
SubsystemReport/Notes
DockerClient=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1435
Optional Testsdupname asflicense spotbugs hadoopcheck hbaseanti checkstyle cc hbaseprotoc prototool
unameLinux 247cbd306d56 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 62718cd
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-general-check/output/diff-checkstyle-hbase-client.txt
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-general-check/output/diff-checkstyle-hbase-server.txt
Max. process+thread count93 (vs. ulimit of 10000)
modulesC: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f) spotbugs=3.1.12
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 38sDocker mode activated.
-0 ⚠️yetus0m 2sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 33sMaven dependency ordering for branch
+1 💚mvninstall5m 50smaster passed
+1 💚compile3m 10smaster passed
-1 ❌shadedjars0m 13sbranch has 7 errors when building our shaded downstream artifacts.
+1 💚javadoc2m 14smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 14sMaven dependency ordering for patch
+1 💚mvninstall5m 45sthe patch passed
+1 💚compile3m 6sthe patch passed
+1 💚javac3m 6sthe patch passed
-1 ❌shadedjars0m 10spatch has 7 errors when building our shaded downstream artifacts.
+1 💚javadoc2m 7sthe patch passed
_ Other Tests _
+1 💚unit0m 52shbase-protocol-shaded in the patch passed.
+1 💚unit1m 32shbase-common in the patch passed.
+1 💚unit1m 9shbase-client in the patch passed.
+1 💚unit198m 30shbase-server in the patch passed.
+1 💚unit4m 23shbase-thrift in the patch passed.
234m 7s
SubsystemReport/Notes
DockerClient=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile
GITHUB PR#1435
Optional Testsjavac javadoc unit shadedjars compile
unameLinux 602e73f85d8b 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 62718cd
Default Java1.8.0_232
shadedjarshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk8-hadoop2-check/output/branch-shadedjars.txt
shadedjarshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk8-hadoop2-check/output/patch-shadedjars.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/testReport/
Max. process+thread count2655 (vs. ulimit of 10000)
modulesC: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 37sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 34sMaven dependency ordering for branch
+1 💚mvninstall7m 9smaster passed
+1 💚compile4m 13smaster passed
-1 ❌shadedjars0m 12sbranch has 7 errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 17shbase-common in master failed.
-0 ⚠️javadoc0m 28shbase-client in master failed.
-0 ⚠️javadoc0m 43shbase-server in master failed.
-0 ⚠️javadoc1m 0shbase-thrift in master failed.
_ Patch Compile Tests _
+0 🆗mvndep0m 14sMaven dependency ordering for patch
+1 💚mvninstall7m 1sthe patch passed
+1 💚compile4m 11sthe patch passed
+1 💚javac4m 11sthe patch passed
-1 ❌shadedjars0m 13spatch has 7 errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 16shbase-common in the patch failed.
-0 ⚠️javadoc0m 29shbase-client in the patch failed.
-0 ⚠️javadoc0m 45shbase-server in the patch failed.
-0 ⚠️javadoc1m 12shbase-thrift in the patch failed.
_ Other Tests _
+1 💚unit1m 17shbase-protocol-shaded in the patch passed.
+1 💚unit2m 8shbase-common in the patch passed.
+1 💚unit1m 35shbase-client in the patch passed.
+1 💚unit198m 45shbase-server in the patch passed.
+1 💚unit4m 5shbase-thrift in the patch passed.
241m 9s
SubsystemReport/Notes
DockerClient=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#1435
Optional Testsjavac javadoc unit shadedjars compile
unameLinux f42e90b2ddff 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 62718cd
Default Java2020-01-14
shadedjarshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk11-hadoop3-check/output/branch-shadedjars.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-common.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-client.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-server.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-thrift.txt
shadedjarshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk11-hadoop3-check/output/patch-shadedjars.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-common.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-client.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-server.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-thrift.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/testReport/
Max. process+thread count2798 (vs. ulimit of 10000)
modulesC: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@liuml07liuml07 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I do not have enough context to be +1. Posting some random comments here

RSGroupInfo newRSG = new RSGroupInfo(newName, oldRSG.getServers());
newGroupMap.put(newName, newRSG);
flushConfig(newGroupMap);
Set<TableName> updateTables = new HashSet<>();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Set<TableName> updateTables = new HashSet<>();
TableDescriptors tableDescriptors = masterServices.getTableDescriptors();
for (Map.Entry<String, TableDescriptor> table : tableDescriptors.getAll().entrySet()) {
Optional<String> rsgroup = table.getValue().getRegionServerGroup();
if (!rsgroup.isPresent()) {
continue;
}
if (rsgroup.get().equals(oldName)) {
updateTables.add(table.getValue().getTableName());
}
}

can be replaced with, if stream is preferred, following code (not tested):

Set<TableName> updateTables = masterServices.getTableDescriptors().getAll().values()
.stream()
.filter(t -> oldName.equals(t.getRegionServerGroup().orElse(null)))
.map(TableDescriptor::getTableName)
.collect(Collectors.toSet());

match++;
}
}
assertEquals(servers.size(), match);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes I agree this is useful assertion.

Actually I was wondering if we can add more context to this test as well as assertions. For example, we create and assign another table to another rsgroup. So the "if" clause checking rsgroup name in RSGroupInfoManagerImpl.java will get tested. Otherwise this test may still pass even when we remove the "if". By the "if" I mean:

if (rsgroup.get().equals(oldName)) {
updateTables.add(table.getValue().getTableName());
}

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 31sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗prototool0m 0sprototool was not available.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
_ master Compile Tests _
+0 🆗mvndep0m 36sMaven dependency ordering for branch
+1 💚mvninstall5m 20smaster passed
+1 💚checkstyle2m 49smaster passed
+1 💚spotbugs8m 37smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 13sMaven dependency ordering for patch
+1 💚mvninstall5m 16sthe patch passed
-0 ⚠️checkstyle0m 32shbase-client: The patch generated 1 new + 37 unchanged - 0 fixed = 38 total (was 37)
-0 ⚠️checkstyle1m 5shbase-server: The patch generated 1 new + 39 unchanged - 0 fixed = 40 total (was 39)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚hadoopcheck10m 48sPatch does not cause any errors with Hadoop 2.10.0 or 3.1.2.
+1 💚hbaseprotoc2m 50sthe patch passed
+1 💚spotbugs8m 49sthe patch passed
_ Other Tests _
+1 💚asflicense1m 2sThe patch does not generate ASF License warnings.
57m 48s
SubsystemReport/Notes
DockerClient=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1435
Optional Testsdupname asflicense spotbugs hadoopcheck hbaseanti checkstyle cc hbaseprotoc prototool
unameLinux 3e4638d18942 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / d6451a8
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-general-check/output/diff-checkstyle-hbase-client.txt
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-general-check/output/diff-checkstyle-hbase-server.txt
Max. process+thread count93 (vs. ulimit of 10000)
modulesC: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f) spotbugs=3.1.12
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 31sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 35sMaven dependency ordering for branch
+1 💚mvninstall5m 9smaster passed
+1 💚compile2m 54smaster passed
+1 💚shadedjars4m 32sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc2m 6smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 14sMaven dependency ordering for patch
+1 💚mvninstall5m 11sthe patch passed
+1 💚compile2m 54sthe patch passed
+1 💚javac2m 54sthe patch passed
+1 💚shadedjars5m 11spatch has no errors when building our shaded downstream artifacts.
+1 💚javadoc2m 6sthe patch passed
_ Other Tests _
+1 💚unit0m 46shbase-protocol-shaded in the patch passed.
+1 💚unit1m 17shbase-common in the patch passed.
+1 💚unit0m 55shbase-client in the patch passed.
+1 💚unit114m 59shbase-server in the patch passed.
+1 💚unit2m 57shbase-thrift in the patch passed.
155m 17s
SubsystemReport/Notes
DockerClient=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile
GITHUB PR#1435
Optional Testsjavac javadoc unit shadedjars compile
unameLinux 3714ae1b2554 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / d6451a8
Default Java1.8.0_232
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/testReport/
Max. process+thread count4565 (vs. ulimit of 10000)
modulesC: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 49sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 36sMaven dependency ordering for branch
+1 💚mvninstall8m 40smaster passed
+1 💚compile4m 30smaster passed
+1 💚shadedjars6m 48sbranch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 21shbase-common in master failed.
-0 ⚠️javadoc0m 32shbase-client in master failed.
-0 ⚠️javadoc0m 49shbase-server in master failed.
-0 ⚠️javadoc1m 9shbase-thrift in master failed.
_ Patch Compile Tests _
+0 🆗mvndep0m 14sMaven dependency ordering for patch
+1 💚mvninstall6m 47sthe patch passed
+1 💚compile3m 40sthe patch passed
+1 💚javac3m 40sthe patch passed
+1 💚shadedjars5m 46spatch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 16shbase-common in the patch failed.
-0 ⚠️javadoc0m 25shbase-client in the patch failed.
-0 ⚠️javadoc0m 39shbase-server in the patch failed.
-0 ⚠️javadoc0m 58shbase-thrift in the patch failed.
_ Other Tests _
+1 💚unit1m 1shbase-protocol-shaded in the patch passed.
+1 💚unit1m 38shbase-common in the patch passed.
+1 💚unit1m 11shbase-client in the patch passed.
-1 ❌unit174m 53shbase-server in the patch failed.
+1 💚unit4m 16shbase-thrift in the patch passed.
230m 4s
SubsystemReport/Notes
DockerClient=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#1435
Optional Testsjavac javadoc unit shadedjars compile
unameLinux fa46c4f270e9 4.15.0-91-generic #92-Ubuntu SMP Fri Feb 28 11:09:48 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / d6451a8
Default Java2020-01-14
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-common.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-client.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-server.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-thrift.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-common.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-client.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-server.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-thrift.txt
unithttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-jdk11-hadoop3-check/output/patch-unit-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/testReport/
Max. process+thread count3227 (vs. ulimit of 10000)
modulesC: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Reidddddd

Copy link
Copy Markdown
ContributorAuthor

Shall we proceed?

And regarding to this idea:

Maybe we could find a way to update the table descriptor for a region at RS side without reopening it?

I think it worth an independent JIRA, quite big might be.

@Apache9Apache9 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.

Still a little worry about adding a new method which is not perfect, but anyway, it could make it easier for user to rename a rs group. Maybe we could find a way to improve the implementation in the future.

+1.

@Reidddddd
Reidddddd merged commit 22675d8 into apache:masterApr 13, 2020

@saintstacksaintstack 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.

Skimmed. LGTM.

thangTang pushed a commit to thangTang/hbase that referenced this pull request Apr 16, 2020
Signed-off-by: Duo Zhang <zhangduo@apache.org>
thangTang pushed a commit to thangTang/hbase that referenced this pull request Apr 16, 2020
Signed-off-by: Duo Zhang <zhangduo@apache.org>
thangTang pushed a commit to thangTang/hbase that referenced this pull request Apr 16, 2020
Signed-off-by: Duo Zhang <zhangduo@apache.org>
thangTang pushed a commit to thangTang/hbase that referenced this pull request Apr 16, 2020
Signed-off-by: Duo Zhang <zhangduo@apache.org>
thangTang pushed a commit to thangTang/hbase that referenced this pull request Apr 16, 2020
Signed-off-by: Duo Zhang <zhangduo@apache.org>
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.

6 participants

@Reidddddd@Apache-HBase@Apache9@saintstack@liuml07@virajjasani