Skip to content

Commit

Permalink
HBASE-24096 Fix TestRSGroupsBalance (apache#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 authored and thangTang committed Apr 16, 2020
1 parent e64b784 commit 93ef33d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 93ef33d

Please sign in to comment.