HBASE-23909 : list_regions raise correct error if it is being splitted/merged/transitioning (#1238)

Signed-off-by: Wellington Ramos Chevreuil <wchevreuil@apache.org>
Signed-off-by: Peter Somogyi <psomogyi@apache.org>
Signed-off-by: Jan Hentschel <jan.hentschel@ultratendency.com>
This commit is contained in:
Viraj Jasani 2020-03-06 13:01:17 +05:30 committed by GitHub
parent 4c9d14a788
commit 4ef326be15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -216,7 +216,12 @@ EOF
def get_regions_for_server(regions_for_table, server_name)
regions_for_table.select do |hregion|
accept_server_name? server_name, hregion.getServerName.toString
actual_server_name = hregion.getServerName
if actual_server_name == nil
raise "Some regions might be splitting or merging or transitioning due to other" \
" reasons"
end
accept_server_name? server_name, actual_server_name.toString
end
end