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
parent a50d5c4a8d
commit 1931714583
No known key found for this signature in database
GPG Key ID: E906DFF511D3E5DB
1 changed files with 6 additions and 1 deletions

View File

@ -208,7 +208,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