Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HBASE-24112 [RSGroup] Support renaming rsgroup #1435

Merged
merged 5 commits into from
Apr 13, 2020

Conversation

Reidddddd
Copy link
Contributor

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 32s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 prototool 0m 0s prototool was not available.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
_ master Compile Tests _
+0 🆗 mvndep 0m 36s Maven dependency ordering for branch
+1 💚 mvninstall 5m 16s master passed
+1 💚 checkstyle 2m 58s master passed
+1 💚 spotbugs 8m 7s master passed
_ Patch Compile Tests _
+0 🆗 mvndep 0m 14s Maven dependency ordering for patch
+1 💚 mvninstall 5m 1s the patch passed
-0 ⚠️ checkstyle 0m 28s hbase-client: The patch generated 1 new + 37 unchanged - 0 fixed = 38 total (was 37)
-0 ⚠️ checkstyle 1m 7s hbase-server: The patch generated 1 new + 39 unchanged - 0 fixed = 40 total (was 39)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 hadoopcheck 10m 31s Patch does not cause any errors with Hadoop 2.10.0 or 3.1.2.
+1 💚 hbaseprotoc 2m 55s the patch passed
+1 💚 spotbugs 8m 54s the patch passed
_ Other Tests _
+1 💚 asflicense 1m 1s The patch does not generate ASF License warnings.
56m 35s
Subsystem Report/Notes
Docker Client=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 Tests dupname asflicense spotbugs hadoopcheck hbaseanti checkstyle cc hbaseprotoc prototool
uname Linux 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 tool maven
Personality dev-support/hbase-personality.sh
git revision master / ea69b87
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/artifact/yetus-general-check/output/diff-checkstyle-hbase-client.txt
checkstyle https://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 count 93 (vs. ulimit of 10000)
modules C: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/console
versions git=2.17.1 maven=2018-06-17T18:33:14Z) spotbugs=3.1.12
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 36s Docker mode activated.
-0 ⚠️ yetus 0m 3s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗 mvndep 0m 35s Maven dependency ordering for branch
+1 💚 mvninstall 5m 53s master passed
+1 💚 compile 3m 21s master passed
+1 💚 shadedjars 5m 25s branch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 2m 5s master passed
_ Patch Compile Tests _
+0 🆗 mvndep 0m 14s Maven dependency ordering for patch
+1 💚 mvninstall 5m 48s the patch passed
+1 💚 compile 3m 12s the patch passed
+1 💚 javac 3m 12s the patch passed
+1 💚 shadedjars 5m 22s patch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 2m 10s the patch passed
_ Other Tests _
+1 💚 unit 0m 47s hbase-protocol-shaded in the patch passed.
+1 💚 unit 1m 27s hbase-common in the patch passed.
+1 💚 unit 1m 7s hbase-client in the patch passed.
+1 💚 unit 188m 15s hbase-server in the patch passed.
+1 💚 unit 3m 45s hbase-thrift in the patch passed.
232m 15s
Subsystem Report/Notes
Docker Client=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 Tests javac javadoc unit shadedjars compile
uname Linux 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 tool maven
Personality dev-support/hbase-personality.sh
git revision master / ea69b87
Default Java 1.8.0_232
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/testReport/
Max. process+thread count 2564 (vs. ulimit of 10000)
modules C: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/console
versions git=2.17.1 maven=2018-06-17T18:33:14Z)
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 35s Docker mode activated.
-0 ⚠️ yetus 0m 3s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗 mvndep 0m 33s Maven dependency ordering for branch
+1 💚 mvninstall 7m 6s master passed
+1 💚 compile 4m 13s master passed
+1 💚 shadedjars 6m 23s branch has no errors when building our shaded downstream artifacts.
-0 ⚠️ javadoc 0m 17s hbase-common in master failed.
-0 ⚠️ javadoc 0m 27s hbase-client in master failed.
-0 ⚠️ javadoc 0m 45s hbase-server in master failed.
-0 ⚠️ javadoc 1m 0s hbase-thrift in master failed.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 15s Maven dependency ordering for patch
+1 💚 mvninstall 6m 51s the patch passed
+1 💚 compile 4m 1s the patch passed
+1 💚 javac 4m 1s the patch passed
+1 💚 shadedjars 6m 43s patch has no errors when building our shaded downstream artifacts.
-0 ⚠️ javadoc 0m 20s hbase-common in the patch failed.
-0 ⚠️ javadoc 0m 32s hbase-client in the patch failed.
-0 ⚠️ javadoc 0m 52s hbase-server in the patch failed.
-0 ⚠️ javadoc 1m 15s hbase-thrift in the patch failed.
_ Other Tests _
+1 💚 unit 1m 14s hbase-protocol-shaded in the patch passed.
+1 💚 unit 2m 10s hbase-common in the patch passed.
+1 💚 unit 1m 35s hbase-client in the patch passed.
+1 💚 unit 188m 42s hbase-server in the patch passed.
+1 💚 unit 3m 45s hbase-thrift in the patch passed.
242m 24s
Subsystem Report/Notes
Docker Client=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 Tests javac javadoc unit shadedjars compile
uname Linux 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 tool maven
Personality dev-support/hbase-personality.sh
git revision master / ea69b87
Default Java 2020-01-14
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-common.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-client.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-server.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-thrift.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-common.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-client.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-server.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-thrift.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/testReport/
Max. process+thread count 2811 (vs. ulimit of 10000)
modules C: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/1/console
versions git=2.17.1 maven=2018-06-17T18:33:14Z)
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

Copy link
Contributor

@virajjasani virajjasani left a comment

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?

@@ -4146,4 +4148,21 @@ private void getProcedureResult(long procId, CompletableFuture<Void> future, int
resp -> resp.hasRSGroupInfo() ? ProtobufUtil.toGroupInfo(resp.getRSGroupInfo()) : null)))
.call();
}

@Override
public CompletableFuture<Void> renameRSGroup(String oldName, String newName) {
Copy link
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
Contributor Author

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);
Copy link
Contributor

@virajjasani virajjasani Apr 5, 2020

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

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

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

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

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

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

@@ -38,6 +38,9 @@
// Keep servers in a sorted set so has an expected ordering when displayed.
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
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

🎊 +1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 3m 59s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 prototool 0m 0s prototool was not available.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
_ master Compile Tests _
+0 🆗 mvndep 0m 35s Maven dependency ordering for branch
+1 💚 mvninstall 5m 17s master passed
+1 💚 checkstyle 2m 56s master passed
+1 💚 spotbugs 8m 12s master passed
_ Patch Compile Tests _
+0 🆗 mvndep 0m 13s Maven dependency ordering for patch
+1 💚 mvninstall 4m 59s the patch passed
-0 ⚠️ checkstyle 0m 29s hbase-client: The patch generated 1 new + 37 unchanged - 0 fixed = 38 total (was 37)
-0 ⚠️ checkstyle 1m 6s hbase-server: The patch generated 1 new + 39 unchanged - 0 fixed = 40 total (was 39)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 hadoopcheck 10m 10s Patch does not cause any errors with Hadoop 2.10.0 or 3.1.2.
+1 💚 hbaseprotoc 2m 47s the patch passed
+1 💚 spotbugs 9m 0s the patch passed
_ Other Tests _
+1 💚 asflicense 1m 1s The patch does not generate ASF License warnings.
59m 40s
Subsystem Report/Notes
Docker Client=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 Tests dupname asflicense spotbugs hadoopcheck hbaseanti checkstyle cc hbaseprotoc prototool
uname Linux 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 tool maven
Personality dev-support/hbase-personality.sh
git revision master / 740e937
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/artifact/yetus-general-check/output/diff-checkstyle-hbase-client.txt
checkstyle https://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 count 93 (vs. ulimit of 10000)
modules C: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/console
versions git=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f) spotbugs=3.1.12
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 27s Docker mode activated.
-0 ⚠️ yetus 0m 3s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗 mvndep 0m 30s Maven dependency ordering for branch
+1 💚 mvninstall 5m 53s master passed
+1 💚 compile 3m 5s master passed
+1 💚 shadedjars 5m 6s branch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 2m 1s master passed
_ Patch Compile Tests _
+0 🆗 mvndep 0m 13s Maven dependency ordering for patch
+1 💚 mvninstall 5m 35s the patch passed
+1 💚 compile 3m 2s the patch passed
+1 💚 javac 3m 2s the patch passed
+1 💚 shadedjars 5m 0s patch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 2m 11s the patch passed
_ Other Tests _
+1 💚 unit 0m 49s hbase-protocol-shaded in the patch passed.
+1 💚 unit 1m 27s hbase-common in the patch passed.
+1 💚 unit 1m 4s hbase-client in the patch passed.
+1 💚 unit 190m 1s hbase-server in the patch passed.
+1 💚 unit 3m 33s hbase-thrift in the patch passed.
232m 28s
Subsystem Report/Notes
Docker Client=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 Tests javac javadoc unit shadedjars compile
uname Linux 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 tool maven
Personality dev-support/hbase-personality.sh
git revision master / 740e937
Default Java 1.8.0_232
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/testReport/
Max. process+thread count 2590 (vs. ulimit of 10000)
modules C: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/console
versions git=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 29s Docker mode activated.
-0 ⚠️ yetus 0m 3s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗 mvndep 0m 29s Maven dependency ordering for branch
+1 💚 mvninstall 7m 4s master passed
+1 💚 compile 4m 3s master passed
+1 💚 shadedjars 5m 55s branch has no errors when building our shaded downstream artifacts.
-0 ⚠️ javadoc 0m 17s hbase-common in master failed.
-0 ⚠️ javadoc 0m 27s hbase-client in master failed.
-0 ⚠️ javadoc 0m 43s hbase-server in master failed.
-0 ⚠️ javadoc 0m 59s hbase-thrift in master failed.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 13s Maven dependency ordering for patch
+1 💚 mvninstall 6m 50s the patch passed
+1 💚 compile 3m 56s the patch passed
+1 💚 javac 3m 56s the patch passed
+1 💚 shadedjars 6m 9s patch has no errors when building our shaded downstream artifacts.
-0 ⚠️ javadoc 0m 20s hbase-common in the patch failed.
-0 ⚠️ javadoc 0m 32s hbase-client in the patch failed.
-0 ⚠️ javadoc 0m 53s hbase-server in the patch failed.
-0 ⚠️ javadoc 1m 14s hbase-thrift in the patch failed.
_ Other Tests _
+1 💚 unit 1m 13s hbase-protocol-shaded in the patch passed.
+1 💚 unit 2m 8s hbase-common in the patch passed.
+1 💚 unit 1m 34s hbase-client in the patch passed.
+1 💚 unit 191m 4s hbase-server in the patch passed.
+1 💚 unit 3m 37s hbase-thrift in the patch passed.
243m 15s
Subsystem Report/Notes
Docker Client=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 Tests javac javadoc unit shadedjars compile
uname Linux 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 tool maven
Personality dev-support/hbase-personality.sh
git revision master / 740e937
Default Java 2020-01-14
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-common.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-client.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-server.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-thrift.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-common.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-client.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-server.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-thrift.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/testReport/
Max. process+thread count 2569 (vs. ulimit of 10000)
modules C: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/2/console
versions git=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 30s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 prototool 0m 0s prototool was not available.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
_ master Compile Tests _
+0 🆗 mvndep 0m 21s Maven dependency ordering for branch
+1 💚 mvninstall 5m 0s master passed
+1 💚 checkstyle 2m 52s master passed
+1 💚 spotbugs 8m 4s master passed
_ Patch Compile Tests _
+0 🆗 mvndep 0m 12s Maven dependency ordering for patch
+1 💚 mvninstall 4m 53s the patch passed
-0 ⚠️ checkstyle 0m 29s hbase-client: The patch generated 1 new + 37 unchanged - 0 fixed = 38 total (was 37)
-0 ⚠️ checkstyle 1m 7s hbase-server: The patch generated 1 new + 39 unchanged - 0 fixed = 40 total (was 39)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 hadoopcheck 10m 23s Patch does not cause any errors with Hadoop 2.10.0 or 3.1.2.
+1 💚 hbaseprotoc 2m 44s the patch passed
+1 💚 spotbugs 9m 2s the patch passed
_ Other Tests _
+1 💚 asflicense 1m 0s The patch does not generate ASF License warnings.
55m 40s
Subsystem Report/Notes
Docker Client=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 Tests dupname asflicense spotbugs hadoopcheck hbaseanti checkstyle cc hbaseprotoc prototool
uname Linux 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 tool maven
Personality dev-support/hbase-personality.sh
git revision master / 740e937
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-general-check/output/diff-checkstyle-hbase-client.txt
checkstyle https://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 count 93 (vs. ulimit of 10000)
modules C: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/console
versions git=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f) spotbugs=3.1.12
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 28s Docker mode activated.
-0 ⚠️ yetus 0m 3s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗 mvndep 0m 13s Maven dependency ordering for branch
+1 💚 mvninstall 5m 33s master passed
+1 💚 compile 3m 9s master passed
+1 💚 shadedjars 5m 9s branch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 2m 3s master passed
_ Patch Compile Tests _
+0 🆗 mvndep 0m 13s Maven dependency ordering for patch
+1 💚 mvninstall 5m 37s the patch passed
+1 💚 compile 3m 4s the patch passed
+1 💚 javac 3m 4s the patch passed
+1 💚 shadedjars 5m 3s patch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 2m 10s the patch passed
_ Other Tests _
+1 💚 unit 0m 47s hbase-protocol-shaded in the patch passed.
+1 💚 unit 1m 26s hbase-common in the patch passed.
+1 💚 unit 1m 4s hbase-client in the patch passed.
+1 💚 unit 189m 57s hbase-server in the patch passed.
+1 💚 unit 3m 42s hbase-thrift in the patch passed.
232m 3s
Subsystem Report/Notes
Docker Client=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 Tests javac javadoc unit shadedjars compile
uname Linux 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 tool maven
Personality dev-support/hbase-personality.sh
git revision master / 740e937
Default Java 1.8.0_232
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/testReport/
Max. process+thread count 2548 (vs. ulimit of 10000)
modules C: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/console
versions git=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 28s Docker mode activated.
-0 ⚠️ yetus 0m 3s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗 mvndep 0m 12s Maven dependency ordering for branch
+1 💚 mvninstall 6m 43s master passed
+1 💚 compile 4m 1s master passed
+1 💚 shadedjars 5m 58s branch has no errors when building our shaded downstream artifacts.
-0 ⚠️ javadoc 0m 17s hbase-common in master failed.
-0 ⚠️ javadoc 0m 28s hbase-client in master failed.
-0 ⚠️ javadoc 0m 45s hbase-server in master failed.
-0 ⚠️ javadoc 1m 0s hbase-thrift in master failed.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 13s Maven dependency ordering for patch
+1 💚 mvninstall 6m 46s the patch passed
+1 💚 compile 3m 51s the patch passed
+1 💚 javac 3m 51s the patch passed
+1 💚 shadedjars 6m 9s patch has no errors when building our shaded downstream artifacts.
-0 ⚠️ javadoc 0m 20s hbase-common in the patch failed.
-0 ⚠️ javadoc 0m 32s hbase-client in the patch failed.
-0 ⚠️ javadoc 0m 51s hbase-server in the patch failed.
-0 ⚠️ javadoc 1m 16s hbase-thrift in the patch failed.
_ Other Tests _
+1 💚 unit 1m 16s hbase-protocol-shaded in the patch passed.
+1 💚 unit 2m 8s hbase-common in the patch passed.
+1 💚 unit 1m 36s hbase-client in the patch passed.
-1 ❌ unit 193m 34s hbase-server in the patch failed.
+1 💚 unit 3m 36s hbase-thrift in the patch passed.
244m 53s
Subsystem Report/Notes
Docker Client=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 Tests javac javadoc unit shadedjars compile
uname Linux 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 tool maven
Personality dev-support/hbase-personality.sh
git revision master / 740e937
Default Java 2020-01-14
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-common.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-client.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-server.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-thrift.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-common.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-client.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-server.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-thrift.txt
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/artifact/yetus-jdk11-hadoop3-check/output/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/testReport/
Max. process+thread count 2638 (vs. ulimit of 10000)
modules C: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/3/console
versions git=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache9
Copy link
Contributor

Apache9 commented Apr 7, 2020

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

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
Contributor

Apache9 commented Apr 7, 2020

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

Reidddddd commented Apr 7, 2020

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

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 30s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 prototool 0m 0s prototool was not available.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
_ master Compile Tests _
+0 🆗 mvndep 0m 22s Maven dependency ordering for branch
+1 💚 mvninstall 4m 55s master passed
+1 💚 checkstyle 2m 50s master passed
+1 💚 spotbugs 7m 52s master passed
_ Patch Compile Tests _
+0 🆗 mvndep 0m 13s Maven dependency ordering for patch
+1 💚 mvninstall 4m 57s the patch passed
-0 ⚠️ checkstyle 0m 28s hbase-client: The patch generated 1 new + 37 unchanged - 0 fixed = 38 total (was 37)
-0 ⚠️ checkstyle 1m 7s hbase-server: The patch generated 1 new + 39 unchanged - 0 fixed = 40 total (was 39)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 hadoopcheck 10m 22s Patch does not cause any errors with Hadoop 2.10.0 or 3.1.2.
+1 💚 hbaseprotoc 2m 46s the patch passed
+1 💚 spotbugs 8m 46s the patch passed
_ Other Tests _
+1 💚 asflicense 1m 0s The patch does not generate ASF License warnings.
54m 58s
Subsystem Report/Notes
Docker Client=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 Tests dupname asflicense spotbugs hadoopcheck hbaseanti checkstyle cc hbaseprotoc prototool
uname Linux 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 tool maven
Personality dev-support/hbase-personality.sh
git revision master / 62718cd
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-general-check/output/diff-checkstyle-hbase-client.txt
checkstyle https://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 count 93 (vs. ulimit of 10000)
modules C: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/console
versions git=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f) spotbugs=3.1.12
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 38s Docker mode activated.
-0 ⚠️ yetus 0m 2s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗 mvndep 0m 33s Maven dependency ordering for branch
+1 💚 mvninstall 5m 50s master passed
+1 💚 compile 3m 10s master passed
-1 ❌ shadedjars 0m 13s branch has 7 errors when building our shaded downstream artifacts.
+1 💚 javadoc 2m 14s master passed
_ Patch Compile Tests _
+0 🆗 mvndep 0m 14s Maven dependency ordering for patch
+1 💚 mvninstall 5m 45s the patch passed
+1 💚 compile 3m 6s the patch passed
+1 💚 javac 3m 6s the patch passed
-1 ❌ shadedjars 0m 10s patch has 7 errors when building our shaded downstream artifacts.
+1 💚 javadoc 2m 7s the patch passed
_ Other Tests _
+1 💚 unit 0m 52s hbase-protocol-shaded in the patch passed.
+1 💚 unit 1m 32s hbase-common in the patch passed.
+1 💚 unit 1m 9s hbase-client in the patch passed.
+1 💚 unit 198m 30s hbase-server in the patch passed.
+1 💚 unit 4m 23s hbase-thrift in the patch passed.
234m 7s
Subsystem Report/Notes
Docker Client=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 Tests javac javadoc unit shadedjars compile
uname Linux 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 tool maven
Personality dev-support/hbase-personality.sh
git revision master / 62718cd
Default Java 1.8.0_232
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk8-hadoop2-check/output/branch-shadedjars.txt
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk8-hadoop2-check/output/patch-shadedjars.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/testReport/
Max. process+thread count 2655 (vs. ulimit of 10000)
modules C: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/console
versions git=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 37s Docker mode activated.
-0 ⚠️ yetus 0m 3s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗 mvndep 0m 34s Maven dependency ordering for branch
+1 💚 mvninstall 7m 9s master passed
+1 💚 compile 4m 13s master passed
-1 ❌ shadedjars 0m 12s branch has 7 errors when building our shaded downstream artifacts.
-0 ⚠️ javadoc 0m 17s hbase-common in master failed.
-0 ⚠️ javadoc 0m 28s hbase-client in master failed.
-0 ⚠️ javadoc 0m 43s hbase-server in master failed.
-0 ⚠️ javadoc 1m 0s hbase-thrift in master failed.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 14s Maven dependency ordering for patch
+1 💚 mvninstall 7m 1s the patch passed
+1 💚 compile 4m 11s the patch passed
+1 💚 javac 4m 11s the patch passed
-1 ❌ shadedjars 0m 13s patch has 7 errors when building our shaded downstream artifacts.
-0 ⚠️ javadoc 0m 16s hbase-common in the patch failed.
-0 ⚠️ javadoc 0m 29s hbase-client in the patch failed.
-0 ⚠️ javadoc 0m 45s hbase-server in the patch failed.
-0 ⚠️ javadoc 1m 12s hbase-thrift in the patch failed.
_ Other Tests _
+1 💚 unit 1m 17s hbase-protocol-shaded in the patch passed.
+1 💚 unit 2m 8s hbase-common in the patch passed.
+1 💚 unit 1m 35s hbase-client in the patch passed.
+1 💚 unit 198m 45s hbase-server in the patch passed.
+1 💚 unit 4m 5s hbase-thrift in the patch passed.
241m 9s
Subsystem Report/Notes
Docker Client=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 Tests javac javadoc unit shadedjars compile
uname Linux 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 tool maven
Personality dev-support/hbase-personality.sh
git revision master / 62718cd
Default Java 2020-01-14
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk11-hadoop3-check/output/branch-shadedjars.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-common.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-client.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-server.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-thrift.txt
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk11-hadoop3-check/output/patch-shadedjars.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-common.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-client.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-server.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-thrift.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/testReport/
Max. process+thread count 2798 (vs. ulimit of 10000)
modules C: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/4/console
versions git=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

Copy link
Member

@liuml07 liuml07 left a comment

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

🎊 +1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 31s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 prototool 0m 0s prototool was not available.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
_ master Compile Tests _
+0 🆗 mvndep 0m 36s Maven dependency ordering for branch
+1 💚 mvninstall 5m 20s master passed
+1 💚 checkstyle 2m 49s master passed
+1 💚 spotbugs 8m 37s master passed
_ Patch Compile Tests _
+0 🆗 mvndep 0m 13s Maven dependency ordering for patch
+1 💚 mvninstall 5m 16s the patch passed
-0 ⚠️ checkstyle 0m 32s hbase-client: The patch generated 1 new + 37 unchanged - 0 fixed = 38 total (was 37)
-0 ⚠️ checkstyle 1m 5s hbase-server: The patch generated 1 new + 39 unchanged - 0 fixed = 40 total (was 39)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 hadoopcheck 10m 48s Patch does not cause any errors with Hadoop 2.10.0 or 3.1.2.
+1 💚 hbaseprotoc 2m 50s the patch passed
+1 💚 spotbugs 8m 49s the patch passed
_ Other Tests _
+1 💚 asflicense 1m 2s The patch does not generate ASF License warnings.
57m 48s
Subsystem Report/Notes
Docker Client=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 Tests dupname asflicense spotbugs hadoopcheck hbaseanti checkstyle cc hbaseprotoc prototool
uname Linux 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 tool maven
Personality dev-support/hbase-personality.sh
git revision master / d6451a8
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-general-check/output/diff-checkstyle-hbase-client.txt
checkstyle https://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 count 93 (vs. ulimit of 10000)
modules C: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/console
versions git=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f) spotbugs=3.1.12
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 31s Docker mode activated.
-0 ⚠️ yetus 0m 3s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗 mvndep 0m 35s Maven dependency ordering for branch
+1 💚 mvninstall 5m 9s master passed
+1 💚 compile 2m 54s master passed
+1 💚 shadedjars 4m 32s branch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 2m 6s master passed
_ Patch Compile Tests _
+0 🆗 mvndep 0m 14s Maven dependency ordering for patch
+1 💚 mvninstall 5m 11s the patch passed
+1 💚 compile 2m 54s the patch passed
+1 💚 javac 2m 54s the patch passed
+1 💚 shadedjars 5m 11s patch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 2m 6s the patch passed
_ Other Tests _
+1 💚 unit 0m 46s hbase-protocol-shaded in the patch passed.
+1 💚 unit 1m 17s hbase-common in the patch passed.
+1 💚 unit 0m 55s hbase-client in the patch passed.
+1 💚 unit 114m 59s hbase-server in the patch passed.
+1 💚 unit 2m 57s hbase-thrift in the patch passed.
155m 17s
Subsystem Report/Notes
Docker Client=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 Tests javac javadoc unit shadedjars compile
uname Linux 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 tool maven
Personality dev-support/hbase-personality.sh
git revision master / d6451a8
Default Java 1.8.0_232
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/testReport/
Max. process+thread count 4565 (vs. ulimit of 10000)
modules C: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/console
versions git=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 49s Docker mode activated.
-0 ⚠️ yetus 0m 3s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗 mvndep 0m 36s Maven dependency ordering for branch
+1 💚 mvninstall 8m 40s master passed
+1 💚 compile 4m 30s master passed
+1 💚 shadedjars 6m 48s branch has no errors when building our shaded downstream artifacts.
-0 ⚠️ javadoc 0m 21s hbase-common in master failed.
-0 ⚠️ javadoc 0m 32s hbase-client in master failed.
-0 ⚠️ javadoc 0m 49s hbase-server in master failed.
-0 ⚠️ javadoc 1m 9s hbase-thrift in master failed.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 14s Maven dependency ordering for patch
+1 💚 mvninstall 6m 47s the patch passed
+1 💚 compile 3m 40s the patch passed
+1 💚 javac 3m 40s the patch passed
+1 💚 shadedjars 5m 46s patch has no errors when building our shaded downstream artifacts.
-0 ⚠️ javadoc 0m 16s hbase-common in the patch failed.
-0 ⚠️ javadoc 0m 25s hbase-client in the patch failed.
-0 ⚠️ javadoc 0m 39s hbase-server in the patch failed.
-0 ⚠️ javadoc 0m 58s hbase-thrift in the patch failed.
_ Other Tests _
+1 💚 unit 1m 1s hbase-protocol-shaded in the patch passed.
+1 💚 unit 1m 38s hbase-common in the patch passed.
+1 💚 unit 1m 11s hbase-client in the patch passed.
-1 ❌ unit 174m 53s hbase-server in the patch failed.
+1 💚 unit 4m 16s hbase-thrift in the patch passed.
230m 4s
Subsystem Report/Notes
Docker Client=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 Tests javac javadoc unit shadedjars compile
uname Linux 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 tool maven
Personality dev-support/hbase-personality.sh
git revision master / d6451a8
Default Java 2020-01-14
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-common.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-client.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-server.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-thrift.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-common.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-client.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-server.txt
javadoc https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-thrift.txt
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/artifact/yetus-jdk11-hadoop3-check/output/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/testReport/
Max. process+thread count 3227 (vs. ulimit of 10000)
modules C: hbase-protocol-shaded hbase-common hbase-client hbase-server hbase-thrift U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1435/5/console
versions git=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Reidddddd
Copy link
Contributor Author

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.

Copy link
Contributor

@Apache9 Apache9 left a comment

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:master Apr 13, 2020
Copy link
Contributor

@saintstack saintstack left a comment

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 free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants