HBASE-12989 region_mover.rb unloadRegions method uses ArrayList concurrently resulting in errors (Abhishek Singh Chouhan)

This commit is contained in:
Andrew Purtell 2015-02-11 12:12:48 -08:00
parent 23a894fc4a
commit 2d475c2677
1 changed files with 1 additions and 1 deletions

View File

@ -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