Repository: hbase
Updated Branches:
  refs/heads/master a0e473730 -> 29c233e6e


HBASE-12681 truncate_preserve command fails with undefined method 'getTable' 
error (Ashish)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/29c233e6
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/29c233e6
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/29c233e6

Branch: refs/heads/master
Commit: 29c233e6e84cf5867610ca57659ca29df2792ee1
Parents: a0e4737
Author: tedyu <[email protected]>
Authored: Sat Dec 13 08:59:56 2014 -0800
Committer: tedyu <[email protected]>
Committed: Sat Dec 13 08:59:56 2014 -0800

----------------------------------------------------------------------
 hbase-shell/src/main/ruby/hbase/admin.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/29c233e6/hbase-shell/src/main/ruby/hbase/admin.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/hbase/admin.rb 
b/hbase-shell/src/main/ruby/hbase/admin.rb
index 748a41c..e5c312b 100644
--- a/hbase-shell/src/main/ruby/hbase/admin.rb
+++ b/hbase-shell/src/main/ruby/hbase/admin.rb
@@ -384,7 +384,7 @@ module Hbase
     
#----------------------------------------------------------------------------------------------
     # Truncates table while maintaing region boundaries (deletes all records 
by recreating the table)
     def truncate_preserve(table_name, conf = @conf)
-      h_table = @connection.getTable(table_name)
+      h_table = @conn.getTable(table_name)
       splits = h_table.getRegionLocations().keys().map{|i| 
Bytes.toString(i.getStartKey)}.delete_if{|k| k == ""}.to_java :String
       splits = org.apache.hadoop.hbase.util.Bytes.toByteArrays(splits)
       table_description = h_table.getTableDescriptor()

Reply via email to