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:34 UTC
[4/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/83aa5432
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/83aa5432
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/83aa5432
Branch: refs/heads/0.98
Commit: 83aa5432e338b0b567d6fdc782a35592238f9b18
Parents: a6d07b3
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:13:03 2015 -0800
----------------------------------------------------------------------
bin/region_mover.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/83aa5432/bin/region_mover.rb
----------------------------------------------------------------------
diff --git a/bin/region_mover.rb b/bin/region_mover.rb
index 36105dd..6476c09 100644
--- a/bin/region_mover.rb
+++ b/bin/region_mover.rb
@@ -309,7 +309,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