hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [1/4] hbase git commit: HBASE-12989 region_mover.rb unloadRegions method uses ArrayList concurrently resulting in errors (Abhishek Singh Chouhan)
Date Wed, 11 Feb 2015 20:13:31 GMT
Repository: hbase
Updated Branches:
  refs/heads/0.98 a6d07b314 -> 83aa5432e
  refs/heads/branch-1 23a894fc4 -> 2d475c267
  refs/heads/branch-1.0 6d5b1d468 -> fb2c54b9a
  refs/heads/master dec0ec229 -> 3f7b18cef


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/3f7b18ce
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/3f7b18ce
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/3f7b18ce

Branch: refs/heads/master
Commit: 3f7b18cefce3318b4268985004dead20a26fccf1
Parents: dec0ec2
Author: Andrew Purtell <apurtell@apache.org>
Authored: Wed Feb 11 12:12:48 2015 -0800
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Wed Feb 11 12:12:48 2015 -0800

----------------------------------------------------------------------
 bin/region_mover.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/3f7b18ce/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


Mime
View raw message