Skip to content

Commit

Permalink
HBASE-24096 Fix TestRSGroupsBalance (#1402)
Browse files Browse the repository at this point in the history
Signed-off-by: Reid Chan <reidchan@apache.org>
Signed-off-by: stack <stack@apache.org>
  • Loading branch information
binlijin committed Apr 1, 2020
1 parent 6f213e9 commit 52c1013
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Expand Up @@ -223,7 +223,7 @@ static class RSGroupMappingScript {

String getRSGroup(String namespace, String tablename) {
if (rsgroupMappingScript == null) {
return RSGroupInfo.DEFAULT_GROUP;
return null;
}
String[] exec = rsgroupMappingScript.getExecString();
exec[1] = namespace;
Expand Down
Expand Up @@ -87,7 +87,10 @@ public static Optional<RSGroupInfo> getRSGroupInfo(MasterServices master,
}
// RSGroup information determined by administrator.
String groupDeterminedByAdmin = manager.determineRSGroupInfoForTable(tableName);
RSGroupInfo groupInfo = manager.getRSGroup(groupDeterminedByAdmin);
RSGroupInfo groupInfo = null;
if (groupDeterminedByAdmin != null) {
groupInfo = manager.getRSGroup(groupDeterminedByAdmin);
}
if (groupInfo != null) {
return Optional.of(groupInfo);
}
Expand Down

0 comments on commit 52c1013

Please sign in to comment.