hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdcry...@apache.org
Subject svn commit: r1042773 - in /hbase/branches/0.90: CHANGES.txt src/main/ruby/hbase/admin.rb
Date Mon, 06 Dec 2010 20:12:15 GMT
Author: jdcryans
Date: Mon Dec  6 20:12:14 2010
New Revision: 1042773

URL: http://svn.apache.org/viewvc?rev=1042773&view=rev
Log:
HBASE-3314  [shell] 'move' is broken

Modified:
    hbase/branches/0.90/CHANGES.txt
    hbase/branches/0.90/src/main/ruby/hbase/admin.rb

Modified: hbase/branches/0.90/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/CHANGES.txt?rev=1042773&r1=1042772&r2=1042773&view=diff
==============================================================================
--- hbase/branches/0.90/CHANGES.txt (original)
+++ hbase/branches/0.90/CHANGES.txt Mon Dec  6 20:12:14 2010
@@ -727,6 +727,7 @@ Release 0.90.0 - Unreleased
    HBASE-3309  "Not running balancer because dead regionserver processing" is a lie
    HBASE-3310  Failing creating/altering table with compression agrument from 
                the HBase shell (Igor Ranitovic via Stack)
+   HBASE-3314  [shell] 'move' is broken
 
 
   IMPROVEMENTS

Modified: hbase/branches/0.90/src/main/ruby/hbase/admin.rb
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/src/main/ruby/hbase/admin.rb?rev=1042773&r1=1042772&r2=1042773&view=diff
==============================================================================
--- hbase/branches/0.90/src/main/ruby/hbase/admin.rb (original)
+++ hbase/branches/0.90/src/main/ruby/hbase/admin.rb Mon Dec  6 20:12:14 2010
@@ -168,19 +168,19 @@ module Hbase
     #----------------------------------------------------------------------------------------------
     # Assign a region
     def assign(region_name, force)
-      @admin.assign(Bytes::toBytes(region_name), java.lang.Boolean::valueOf(force))
+      @admin.assign(Bytes.toBytes(region_name), java.lang.Boolean::valueOf(force))
     end
 
     #----------------------------------------------------------------------------------------------
     # Unassign a region
     def unassign(region_name, force)
-      @admin.unassign(Bytes::toBytes(region_name), java.lang.Boolean::valueOf(force))
+      @admin.unassign(Bytes.toBytes(region_name), java.lang.Boolean::valueOf(force))
     end
 
     #----------------------------------------------------------------------------------------------
     # Move a region
     def move(encoded_region_name, server = nil)
-      @admin.move(encoded_region_name, server ? [server].to_java: nil)
+      @admin.move(Bytes.toBytes(encoded_region_name), server ? Bytes.toBytes(server): nil)
     end
 
     #----------------------------------------------------------------------------------------------



Mime
View raw message