You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ap...@apache.org on 2015/02/11 21:13:32 UTC
[2/4] hbase git commit: HBASE-12989 region_mover.rb unloadRegions
method uses ArrayList concurrently resulting in errors (Abhishek Singh
Chouhan)
HBASE-12989 region_mover.rb unloadRegions method uses ArrayList concurrently resulting in errors (Abhishek Singh Chouhan)
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/2d475c26
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/2d475c26
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/2d475c26
Branch: refs/heads/branch-1
Commit: 2d475c2677ac0d345a0e7d7aaf74a6ba2728687e
Parents: 23a894f
Author: Andrew Purtell <ap...@apache.org>
Authored: Wed Feb 11 12:12:48 2015 -0800
Committer: Andrew Purtell <ap...@apache.org>
Committed: Wed Feb 11 12:12:56 2015 -0800
----------------------------------------------------------------------
bin/region_mover.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/2d475c26/bin/region_mover.rb
----------------------------------------------------------------------
diff --git a/bin/region_mover.rb b/bin/region_mover.rb
index 78979d9..565b0d5 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