HBASE-12989 region_mover.rb unloadRegions method uses ArrayList concurrently resulting in errors (Abhishek Singh Chouhan)
This commit is contained in:
parent
23a894fc4a
commit
2d475c2677
|
@ -307,7 +307,7 @@ def unloadRegions(options, hostname, port)
|
|||
puts "No regions were moved - there was no server available"
|
||||
exit 4
|
||||
end
|
||||
movedRegions = java.util.ArrayList.new()
|
||||
movedRegions = java.util.Collections.synchronizedList(java.util.ArrayList.new())
|
||||
while true
|
||||
rs = getRegions(config, servername)
|
||||
# Remove those already tried to move
|
||||
|
|
Loading…
Reference in New Issue