From 2d475c2677ac0d345a0e7d7aaf74a6ba2728687e Mon Sep 17 00:00:00 2001 From: Andrew Purtell Date: Wed, 11 Feb 2015 12:12:48 -0800 Subject: [PATCH] HBASE-12989 region_mover.rb unloadRegions method uses ArrayList concurrently resulting in errors (Abhishek Singh Chouhan) --- bin/region_mover.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/region_mover.rb b/bin/region_mover.rb index 78979d91a10..565b0d5a1a6 100644 --- a/bin/region_mover.rb +++ b/bin/region_mover.rb @@ -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