You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by te...@apache.org on 2013/03/04 20:00:19 UTC
svn commit: r1452443 - /hbase/branches/0.94/src/main/ruby/hbase/table.rb
Author: tedyu
Date: Mon Mar 4 19:00:18 2013
New Revision: 1452443
URL: http://svn.apache.org/r1452443
Log:
HBASE-7990 Backport HBASE-5837 'hbase shell deleteall to .META. allows insertion of malformed rowkey' to 0.94
Modified:
hbase/branches/0.94/src/main/ruby/hbase/table.rb
Modified: hbase/branches/0.94/src/main/ruby/hbase/table.rb
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/main/ruby/hbase/table.rb?rev=1452443&r1=1452442&r2=1452443&view=diff
==============================================================================
--- hbase/branches/0.94/src/main/ruby/hbase/table.rb (original)
+++ hbase/branches/0.94/src/main/ruby/hbase/table.rb Mon Mar 4 19:00:18 2013
@@ -53,6 +53,7 @@ module Hbase
#----------------------------------------------------------------------------------------------
# Delete a row
def deleteall(row, column = nil, timestamp = org.apache.hadoop.hbase.HConstants::LATEST_TIMESTAMP)
+ raise ArgumentError, "Row Not Found" if _get_internal(row).nil?
d = org.apache.hadoop.hbase.client.Delete.new(row.to_s.to_java_bytes, timestamp, nil)
if column
family, qualifier = parse_column_name(column)