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:
parent
a50d5c4a8d
commit
1931714583
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue